Advertisement
Guest User

proxychains segfault patch

a guest
May 12th, 2012
1,926
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1.  
  2. entropy@phiral.net:~/code/inetscan/proxychains-3.1/proxychains$ ./proxychains /usr/bin/nmap -T2 -sT -PN -n -sV -p443 X.X.X.X
  3. ProxyChains-3.1 (http://proxychains.sf.net)
  4.  
  5. Starting Nmap 5.00 ( http://nmap.org ) at 2012-05-12 19:30 EDT
  6. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  7. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  8. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  9. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  10. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  11. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  12. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  13. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  14. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  15. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  16. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  17. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  18. Segmentation fault (core dumped)
  19.  
  20. proxy_getaddrinfo in proxychains-3.1/proxychains/core.c
  21.  
  22. problem is that *hints is not checked before assignment...
  23. comment out these three lines:
  24.  
  25. (*res)->ai_socktype = hints->ai_socktype;
  26. (*res)->ai_flags = hints->ai_flags;
  27. (*res)->ai_protocol = hints->ai_protocol;
  28.  
  29. paste these in:
  30.  
  31. if (hints != NULL) {
  32. (*res)->ai_socktype = hints->ai_socktype;
  33. (*res)->ai_flags = hints->ai_flags;
  34. (*res)->ai_protocol = hints->ai_protocol;
  35. } else {
  36. (*res)->ai_socktype = 0;
  37. (*res)->ai_flags = 0;
  38. (*res)->ai_protocol = 0;
  39. }
  40.  
  41. cd ..
  42. make
  43. make install
  44.  
  45. entropy@phiral.net:~/code/inetscan/proxychains-3.1/proxychains$ ./proxychains /usr/bin/nmap -T2 -sT -PN -n -sV -p443 X.X.X.X
  46. ProxyChains-3.1 (http://proxychains.sf.net)
  47.  
  48. Starting Nmap 5.00 ( http://nmap.org ) at 2012-05-12 19:54 EDT
  49. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  50. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  51. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  52. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  53. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  54. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  55. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  56. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  57. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  58. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  59. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  60. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  61. |S-chain|-<>-127.0.0.1:9050-<><>-X.X.X.X:443-<><>-OK
  62. Interesting ports on X.X.X.X:
  63. PORT STATE SERVICE VERSION
  64. 443/tcp open ssl/ssl OpenSSL (SSLv3)
  65.  
  66. Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .
  67. Nmap done: 1 IP address (1 host up) scanned in 27.89 seconds
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement