|
|
发表于 2005-5-19 23:12:19
|
显示全部楼层
- #include <stdio.h>
- #include <stdlib.h>
- int main(int argc, char **argv)
- {
- unsigned int ip = 3528707690u;
- unsigned int a = 0xff000000u;
- unsigned int b = 0x00ff0000u;
- unsigned int c = 0x0000ff00u;
- unsigned int d = 0x000000ffu;
- printf("%u.%u.%u.%u\n",
- (ip & a) >> 24, (ip & b) >> 16, (ip & c) >> 8, ip & d);
- exit(EXIT_SUCCESS);
- }
复制代码
coder@deb3:~/progs/blp/c9$ ./ipcalc
210.83.206.106
coder@deb3:~/progs/blp/c9$
starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2005-05-19 22:34 CST
Interesting ports on 210.83.206.106:
(The 1648 ports scanned but not shown below are in state: closed)
PORT STATE SERVICE
21/tcp open ftp
25/tcp open smtp
80/tcp open http
135/tcp filtered msrpc
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-ds
593/tcp filtered http-rpc-epmap
1025/tcp open NFS-or-IIS
1029/tcp open ms-lsa
2008/tcp open conf <---------------------------------------------
3306/tcp open mysql
4444/tcp filtered krb524
5003/tcp open filemaker
5800/tcp filtered vnc-http
5900/tcp filtered vnc
~ |
|