Advertisement
YeiZeta

Puerto Scanner python

Nov 21st, 2012
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. #!/usr/bin/env python
  2. # TheJoker-12
  3. # pagina: http://securitytrials.blogspot.mx/
  4. # Visitanos:https://www.facebook.com/TheJokerHack
  5. #
  6. # SOMOS THE JOKER HACK :>HackingEtico
  7. # TEAM SEGURIDAD INFORMATICA
  8. #
  9. print "\n.--------------------------------------------------------------."
  10. print "| THE JOKER HACK |"
  11. print "|===================. !Seguridad Informatica! .================|"
  12. print "| :========================: |"
  13. print "| .---------------. /^\ /^\ |"
  14. print "| |Python | _/ | \___/ | \_ .-----------------. |"
  15. print "| | Perl | // / \_____/ \ \\ |RUBY | |"
  16. print "| |_______________| / __ __ \ |_________________| |"
  17. print "| .-------------. | / /(O\ /O)\ \ | .------------. |"
  18. print "| |ALL Computers| | / \ Y / \ | | USRobotics | |"
  19. print "| | WELCOME | \ | | | | / |HST/DS 14.4K| |"
  20. print "| |_____________| \ \ |_|_| / / |____________| |"
  21. print "| | \<\^/>/ | |"
  22. print "| \===/ (R)(TM) |"
  23. print "| :================: |"
  24. print "|======================| (2012) |======================|"
  25. print "|==============================================================|"
  26. print "|_____________________________(c) 2012-2018 _|\n\n"
  27.  
  28. import sys, time
  29. from socket import *
  30. if __name__ == '__main__':
  31. TARGET = sys.argv[1]
  32. START = time.time()
  33. IP = gethostbyname(TARGET)
  34. print 'SCANNING:', IP
  35. for X in range(20, 1025):
  36. o = socket(AF_INET, SOCK_STREAM)
  37. RESULT = o.connect_ex((IP, X))
  38. if (RESULT == 0) :
  39. print 'PORT', X, ': Abiertos'
  40. o.close()
  41. STOP = time.time()
  42. print "Scanneo Completado." % (Empezar-Pausar)
  43. print "Gracias por usar Nuestro Scanner de Puertos."
  44. sys.exit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement