Advertisement
B47CHGURU

reverse ip tool (sameip based)

Jul 23rd, 2011
352
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 2.26 KB | None | 0 0
  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;this is a compact and simple autoit script for extracting websites from http://sameip.org  ;
  3. ;made by B47CH GURU.....just a prototype..                                                  ;
  4. ;extracts websites to a text file in the samelle directory                                     ;
  5. ;here are the message boxes if you want to test it while modificaton.                       ;
  6. ;this however has a limitation of 3000 sites , which you can readjust to your necessities.  ;
  7. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;                                            ;
  8. ;MsgBox(0, "Sip in triming", $ip)              ;                                            ;
  9. ;MsgBox(0, "explode", $array1[0])              ;                                            ;
  10. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;                                            ;
  11. ;you can contact me at http://www.facebook.com/daryl.varghese                               ;
  12. ;or you can mail me at [email protected]                                             ;
  13. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  14.  
  15.  
  16.  
  17. #include <String.au3>
  18. #include <Array.au3>
  19. #include <file.au3>
  20. #include <INet.au3>
  21. $file = InputBox("destination text file","source and shit")
  22. If $file = "" Then $file = "list.txt"
  23. $server = InputBox("server ip Address","server ip address..!!")
  24. If $server = "" Then Exit
  25. FileOpen ($file, 1)
  26. $dollar = 1
  27. filewrite($file,_INetGetSource('http://sameip.org/ip/'&$server))
  28. FileClose($file)
  29. $file = FileOpen($file, 0)
  30. $file2 = $server&"done.txt"
  31. $file2 = FileOpen($file2, 1)
  32. $asd=0
  33. $i=1
  34. $ip="sd"
  35. $r=1
  36. $as = "s"
  37.  
  38. While $as = "s"
  39.    
  40. $ip=FileReadLine ( $file , $r )
  41. If $r=3000 Then Exit
  42. If StringInStr($ip, '<a href="') Then
  43.     $asd=1
  44.     asshole()
  45. Else
  46.     $asd=0
  47. EndIf
  48.  
  49. $r=$r+1
  50. WEnd
  51.  
  52.  
  53. Func asshole()
  54. $ip = StringTrimLeft($ip, StringInStr($ip, "href=")+5)
  55.  
  56.     $i=$i+1
  57.    
  58.     $array1 = _StringExplode($ip, ".com", 0)
  59. $ip = $array1[0] & ".com"
  60. If StringInStr($ip, '"') Then
  61.     while $as = 's'
  62.     If Not StringInStr($ip, '"') Then ExitLoop
  63.     $array1 = _StringExplode($ip, '"', 0)
  64.     $ip = $array1[0]
  65.     WEnd
  66. EndIf
  67. FileWriteLine($file2,$ip)
  68.     EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement