成人免费xxxxx在线视频软件_久久精品久久久_亚洲国产精品久久久_天天色天天色_亚洲人成一区_欧美一级欧美三级在线观看

Tcptraceroute:基于TCP數據包的路由跟蹤器

安全
現代網絡廣泛使用防火墻,導致傳統路由跟蹤工具發出的(ICMP應答(ICMP echo)或UDP)數據包都被過濾掉了,所以無法進行完整的路由跟蹤。

現代網絡廣泛使用防火墻,導致傳統路由跟蹤工具發出的(ICMP應答(ICMP echo)或UDP)數據包都被過濾掉了,所以無法進行完整的路由跟蹤。盡管如此,許多情況下,防火墻會準許反向(inbound)TCP數據包通過防火墻到達指定端口,這些端口是主機內防火墻背后的一些程序和外界連接用的。通過發送TCP SYN數據包來代替UDP或者ICMP應答數據包,tcptraceroute可以穿透大多數防火墻。

下載鏈接:http://down.51cto.com/data/161567

>>去網絡安全工具百寶箱看看其它安全工具

一、LIBPCAP:

下載:libpcap

http://down.51cto.com/data/161564 下載 libpcap-0.8.3.tar.gz

安裝:

  1. tar zxvf ~lonen/Testing-pt/libpcap-0.8.3.tar.gz  
  2.  
  3. ./configure --without-flex --without-bison --prefix=/usr/local/libpcap 

二、LIBNET:

下載:libnet

http://down.51cto.com/data/161565 下載libnet-1.0.2a.tar.gz

安裝:

  1. tar zxvf ~lonen/Testing-pt/libnet-1.0.2a.tar.gz  
  2. ln -s Libnet-1.0.2a/ libnet  
  3. cd libnet/  
  4. ./configure --prefix=/usr/local/libnet  
  5. make  
  6. more README  
  7. make install; make supp;make util  
  8. make install  
  9. make supp 

 三、TCPTRACEROUTE:

下載:tcptraceroute

http://down.51cto.com/data/161567 下載1.5.tar.gz

閱讀安裝幫助,牢記,養成閱讀英文的習慣,工作效率也能夠提高很多。真正的心得。

  1. [root@soft tcptraceroute-1.5beta7]# ./configure --prefix=/usr/local/tcptraceroute \  
  2. > --with-libpcap=/usr/local/libpcap \  
  3. > --with-libnet=/usr/local/libnet \  
  4. > --enable-static  
  5. make;make install  
  6. [root@soft bin]# cp tcptraceroute /bin/  
  7. [root@soft bin]# tcptraceroute --help  
  8.  
  9. tcptraceroute 1.5beta7  
  10. Copyright (c) 2001-2006 Michael C. Toren <mct@toren.net> 
  11. Updates are available from http://michael.toren.net/code/tcptraceroute/  
  12.  
  13. Usage: tcptraceroute [-nNFSAE] [-i <interface>] [-f <first ttl>]  
  14.        [-l <packet length>] [-q <number of queries>] [-t <tos>]  
  15.        [-m <max ttl>] [-pP] <source port>] [-s <source address>]  
  16.        [-w <wait time><host> [destination port] [packet length] 

 

  1. -n  
  2.     Display numeric output, rather than doing a reverse DNS lookup for each hop. By default, reverse lookups are never attempted on RFC1918   
  3.  
  4. address space, regardless of the -n flag.   
  5. -N  
  6.     Perform a reverse DNS lookup for each hop, including RFC1918 addresses.   
  7. -f  
  8.     Set the initial TTL used in the first outgoing packet. The default is 1.   
  9. -m  
  10.     Set the maximum TTL used in outgoing packets. The default is 30.   
  11. -p  
  12.     Use the specified local TCP port in outgoing packets. The default is to obtain a free port from the kernel using bind(2). Unlike with traditional   
  13.  
  14. traceroute(8), this number will not increase with each hop.   
  15. -s  
  16.     Set the source address for outgoing packets. See also the -i flag.   
  17. -i  
  18.     Use the specified interface for outgoing packets.   
  19. -q  
  20.     Set the number of probes to be sent to each hop. The default is 3.   
  21. -w  
  22.     Set the timeout, in seconds, to wait for a response for each probe. The default is 3.   
  23. -S  
  24.     Set the TCP SYN flag in outgoing packets. This is the default, if neither -S or -A is specified.   
  25. -A  
  26.     Set the TCP ACK flag in outgoing packets. By doing so, it is possible to trace through stateless firewalls which permit outgoing TCP connections.   
  27. -E  
  28.     Send ECN SYN packets, as described in RFC2481.   
  29. -t  
  30.     Set the IP TOS (type of service) to be used in outgoing packets. The default is not to set any TOS.   
  31. -F  
  32.     Set the IP "don't fragment" bit in outgoing packets.   
  33. -l  
  34.     Set the total packet length to be used in outgoing packets. If the length is greater than the minimum size required to assemble the necessary probe   
  35.  
  36. packet headers, this value is automatically increased.   
  37. -d  
  38.     Enable debugging, which may or may not be useful.  
  39.  
  40. -i 指定接口,網絡接口  
  41. -f 起初第幾條開始,比如5,開始顯示第5跳的結果  
  42. -l traceroute包的長度  
  43. -q 查詢的數字號  
  44. -t tos  
  45. -m ***的TTL  
  46. -s 源地址,如果服務器有兩塊網卡,就可以采用指定-s的源地址路由,在所有的tracert/traceroute都 有這樣的基本功能  
  47. -w等待的時間  
  48. host 指定要TRACEROUTE的一個IP或者是域名 www.bloghacker.cn 

#p#

四、真是有效的測試記錄對比:

  1. [root@soft ~]# traceroute -w 2 -q 1 -f 5 www.singtel.com.sg  
  2. traceroute to www.singtel.com.sg (203.208.248.10), 30 hops max, 38 byte packets  
  3. 5 219.158.4.66 (219.158.4.66) 27.322 ms  
  4. 6 219.158.3.198 (219.158.3.198) 27.664 ms  
  5. 7 203.208.151.17 (203.208.151.17) 92.729 ms  
  6. 8 GigabitEthernet6-0.sngtp-ar2.ix.singtel.com (203.208.183.19) 108.016 ms  
  7. 9 202.160.250.226 (202.160.250.226) 83.829 ms  
  8. 10 203.208.232.50 (203.208.232.50) 91.525 ms  
  9. 11 203.208.232.57 (203.208.232.57) 83.972 ms  
  10. 12 *  
  11. 13 *  
  12. 14 *  
  13. 15 *  
  14. 16 *  
  15. 17 *  
  16. 18 *  
  17. 19 *  
  18. 20 *  
  19. 21 *  
  20. 22 *  
  21. 23 *  
  22. 24 *  
  23. 25 *  
  24. 26 *  
  25. 27 *  
  26. 28 *  
  27. 29 *  
  28. 30 * 

現在看看tcptraceroute:

  1. [root@soft ~]# tcptraceroute -f 1 www.singtel.com.sg  
  2. Selected device eth0, address 61.51.18.130, port 34733 for outgoing packets  
  3. Tracing the path to www.singtel.com.sg (203.208.248.10) on TCP port 80 (http), 30 hops max  
  4. 1 61.51.18.1 2.512 ms 1.543 ms 1.783 ms  
  5. 2 202.96.13.169 1.548 ms 11.025 ms 6.981 ms  
  6. 3 202.106.192.157 7.470 ms 8.355 ms 4.358 ms  
  7. 4 219.158.4.65 4.590 ms 5.006 ms 2.284 ms  
  8. 5 219.158.4.66 26.886 ms 30.142 ms 25.995 ms  
  9. 6 219.158.3.198 28.820 ms 26.171 ms 28.981 ms  
  10. 7 203.208.151.17 92.619 ms 92.521 ms 96.665 ms  
  11. 8 GigabitEthernet6-0.sngtp-ar2.ix.singtel.com (203.208.183.19) 98.351 ms 97.487 ms 97.133 ms  
  12. 9 202.160.250.226 83.047 ms 83.592 ms 83.252 ms  
  13. 10 203.208.232.50 91.092 ms 90.978 ms 91.000 ms  
  14. 11 203.208.232.57 83.049 ms 82.607 ms 82.000 ms  
  15. 12 203.208.248.10 [open] 83.971 ms 82.609 ms 84.863 ms  
  16. _____________________________________完成TRACEROUTE 

五、補充:route的配置靜態路由表Linux

route命令主要用于手動配置靜態路由表

  1. #route add net remote_net_ip gateway_ip 1   

例:增加一條通過網關到達令一子網的路由

其中add代表要增加路由,net表示路由到達的是一個網絡而不是一臺主機,1代表遠端網絡需通過網關才能到達

(直接通過網絡接口相連時,該參數用0)

命令格式:

  1. #route add -net remote_net_ip gateway_ip -netmask netmask   
  2. #route add -host host_ip local_interface_ip -interface  

六、HPING

1、下載hping 源代碼包

wget http://www.hping.org/hping3-20051105.tar.gz

2、安裝幫助文檔,仔細看看,在LINUX./BSD的環境下完成;

  1. Linux  
  2. -----  
  3.  
  4. please, follows this steps:  
  5.  
  6. $ ./configure (first try ./configure --help)  
  7. $ vi Makefile (optional)  
  8. $ make  
  9. $ su  
  10. # make install  
  11.  
  12. FreeBSD, OpenBSD, NetBSD  
  13. ------------------------  
  14.  
  15. You will need the libpcap and the gmake utility installed on your system.  
  16.  
  17. $ ./configure  
  18. $ gmake  
  19. $ su (or calife)  
  20. # gmake install  
  21.  
  22. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
  23. NOTE: You should take care about your net/bpf.h file installing on  
  24.       BSD systems (specially with OpenBSD). If your original bpf.h was  
  25.       overwritten with the libpcap one probably hping will not work  
  26.       with over some interface.  
  27.  
  28.       For example if you use the libpcap bpf.h on OpenBSD hping will  
  29.       not work over PPP interfaces.  
  30. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 

3、正式完成,加載LIBPCAP

  1. [root@soft hping3-20051105]# ./configure --prefix=/usr/local/hping --with-libpcap=/usr/local/libpcap  
  2.  
  3. make;make install 

七、其他

 

責任編輯:佟健 來源: 百度空間
相關推薦

2012-12-04 09:54:33

路由器數據包TCP

2013-01-21 15:11:39

路由器數據包路由技術

2019-04-29 07:53:11

TCP數據包TCP網絡編程

2013-01-28 13:32:52

路由器網絡設置數據傳輸

2014-07-09 09:43:59

2009-12-23 15:01:17

2021-05-12 00:07:27

TCPIP協議

2020-08-29 18:38:11

物聯網 LPWAN資產跟蹤器

2018-03-13 11:38:14

2019-06-06 15:00:10

2022-06-10 10:24:02

JavaScriptCOVID-19前端

2022-05-27 10:06:17

DuckDuckGo用戶隱私微軟

2024-10-28 17:17:32

2023-03-02 08:32:27

2011-04-15 13:30:07

Tracert路由

2009-12-14 17:15:12

AS邊界路由器

2015-01-09 09:41:16

HTTPSHTTPS安全COOKIE

2021-03-02 09:42:25

跟蹤器密碼管理器密碼

2009-07-15 11:21:46

路由器功能數據包

2022-01-05 09:00:00

加密貨幣數據技術
點贊
收藏

51CTO技術棧公眾號

主站蜘蛛池模板: 国产精品久久久久久久久久久久久 | 午夜精品久久久久久久久久久久久 | 久久国产精品一区二区 | 99pao成人国产永久免费视频 | 欧美精品在线播放 | 国产精品高 | 久草色视频 | 国产精品久久一区二区三区 | 欧美影院 | 欧美日韩精品一区二区三区四区 | 黄视频网站在线 | 免费在线播放黄色 | 国产精品久久久久久久久久久久冷 | 日本精品视频 | 91精品国产乱码久久久久久久 | 色婷婷一区 | 阿v视频在线观看 | 97av视频 | 日韩电影在线一区 | 福利视频一区二区 | 亚洲精品一区二区三区四区高清 | 成人a免费 | cao在线| 91在线视频免费观看 | 亚洲一二三区精品 | 国产福利视频 | 欧美精品一区二区免费视频 | 欧美精品福利 | 黄色av网站在线观看 | 国产区视频在线观看 | 日韩a在线 | 欧美日韩国产综合在线 | 九九热在线免费视频 | 911精品美国片911久久久 | 伊人久操 | 亚洲成人日韩 | 成人三级视频 | 亚洲三级在线观看 | 午夜精品一区二区三区免费视频 | 一级黄色毛片免费 | 久久久国产一区二区三区四区小说 |