Advertisement
Alihamdy1010

Untitled

Mar 30th, 2022 (edited)
1,094
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 4.19 KB | None | 0 0
  1. import socket
  2. import sys
  3. import os
  4. import hashlib
  5. from time import *
  6. from datetime import datetime
  7. os.system("clear")
  8. ######################################
  9.  
  10. print ("\033[1;31m         _,.-------.,_")
  11. print ("\033[1;31m     ,;~'             '~;,")
  12. print ("\033[1;31m   ,;                     ;,")
  13. print ("\033[1;31m  ;                         ;")
  14. print ("\033[1;31m ,'                         ',")
  15. print ("\033[1;31m,;                           ;,")
  16. print ("\033[1;31m; ;      .           .      ; ;")
  17. print ("\033[1;31m| ;   ______       ______   ; |")
  18. print ("\033[1;31m|  `/~-     ~+ . -~     +~\-  |")
  19. print ("\033[1;31m|  ~  ,-~~~^~, | ,~^~~~-,  ~  |")
  20. print ("\033[1;31m |   |        }:{        |   |")
  21. print ("\033[1;31m |   l       / | \      !   |")
  22. print ("\033[1;31m .~  (__,.--- .^. +--.,__)  ~.")
  23. print ("\033[1;31m |     ---;' / | \ `;---     |")
  24. print ("\033[1;31m  \__.       \/^\/       .__/")
  25. print ("\033[1;31m   V| \                / |V")
  26. print ("\033[1;31m    | |T~\___!___!___/~T| |")
  27. print ("\033[1;31m    | |`IIII_I_I_I_IIII'| |")
  28. print ("\033[1;31m    |  \,III I I I III,/  |")
  29. print ("\033[1;31m     \  `~~~~~~~~~~'    /")
  30. print ("\033[1;31m       \  .       .   /    \033[1;33m  DARK-ERROR (4/15/95)")
  31. print ("\033[1;31m         \.    ^    ./")
  32. print ("\033[1;31m           ^~~~^~~~^")
  33.  
  34. ######################################
  35. from licensing.models import *
  36. from licensing.methods import Key, Helpers
  37.  
  38.  
  39. RSAPubKey = "<RSAKeyValue><Modulus>tWBeDysFstFBaBHhoLUDK1drxORpqf2yA03DAe+vyoTm5kmzfNoAi5cU4kEJ8TEmxrBm+vSHEAd4F6LgpT0s39ptQPrstOG6hb2ao4dfVd/p0B981LIf/JQU/b58jLQOGhKXf/X4oIAhlOFrwxCpZ6Ihq6NPATbcbq3yJgqAL3m42z91NOIatVd8graTpe4sGRf4nLVuEkLJ0ABfRU1udkWSN5hJ4WnY1LQF4DaIo2ACuKilkwV355LGKcbZbh6fJGbXjIw37I74MJaPEeUC/4MjETWM5J0ERJIMVMxOIb2/7xQsJwMU8TVE1ImzZVdCp5VzfwUaxSVtGnKHU/r1EQ==</Modulus><Exponent>AQAB</Exponent></RSAKeyValue>"
  40. auth = "WyIyNDgzODkyOSIsIlRMVGJlYjJvUTQ2bDQycVJINUJhOUxaSU5wT2p6MHg1N3FjaEEzeWciXQ=="
  41. ali = input("enter licenes key:  ")
  42.  
  43. result = Key.activate(token=auth,\
  44.                    rsa_pub_key=RSAPubKey,\
  45.                    product_id=16630, \
  46.                    key= ali , \
  47.                    machine_code=Helpers.GetMachineCode(v=2))
  48.  
  49. if result[0] == None :
  50.     # an error occurred or the key is invalid or it cannot be activated
  51.     # (eg. the limit of activated devices was achieved)
  52.     print("The license does not work: {0}".format(result[1]))
  53.     exit(".")
  54. else:
  55.     # everything went fine if we are here!
  56.     print("The license is valid!")
  57.     license_key = result[0]
  58.     print("License expires: " + str(license_key.expires))
  59.     time.sleep(4)
  60.     os.system("clear")
  61.     pass
  62.  
  63. ######################################
  64. print ("\033[1;33m ,------.    ,---.  ,------. ,--. ,--.       ,------.,------. ,------.  ,-----. ,------.     ,--------.,------.  ,---.  ,--.   ,--.")
  65. print ("\033[1;34m |  .-.  \ /  O  \ |  .--. '|  .'   /,-----.|  .---'|  .--. '|  .--. ''  .-.  '|  .--. '    '--.  .--'|  .---' /  O  \ |   `.'   | ")
  66. print ("\033[1;31m |  |  \ :|  .-.  ||  '--'.'|  .   ' '-----'|  `--, |  '--'.'|  '--'.'|  | |  ||  '--'.'       |  |   |  `--, |  .-.  ||  |'.'|  | ")
  67. print ("\033[1;35m |  '--'  /|  | |  ||  |\ \ |  |\  \      |  `---.|  |\ \ |  |\ \ '  '-'  '|  |\ \       |  |   |  `---.|  | |  ||  |   |  | ")
  68. print ("\033[1;36m `-------' `--' `--'`--' '--'`--' '--'       `------'`--' '--'`--' '--' `-----' `--' '--'       `--'   `------'`--' `--'`--'   `--' ")
  69. #####################################
  70. ip= input ("\033[1;33m =====>ENTER YOUR IP TO START: ")
  71. print ("scanning start %s please wait"%ip)
  72. sleep(1)
  73. #####################################
  74.  
  75. def jalan(z):
  76.     for e in z + '\n':
  77.         sys.stdout.write(e)
  78.         sys.stdout.flush()
  79.         time.sleep(00000.09)
  80.  
  81. ######################################
  82. try:
  83.     for port in range (1,6553) :
  84.         s=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
  85.         if(s.connect_ex((ip,port))==0):
  86.             try:
  87.                 serv=socket.getservbyport(port)
  88.             except socket.error:
  89.                 serv= "Unknown Service"
  90.             print ("Port %s 0pen Service:%s "%(port, serv))
  91.     print ("Scanning Completed")
  92. except KeyboardInterrupt:
  93.     print ("See You Soon...!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement