Advertisement
KhaosBringer

ssh2fix.py

May 12th, 2019
894
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.97 KB | None | 0 0
  1. import subprocess
  2. import os
  3. import random
  4. import sys
  5. import time,urllib2
  6.  
  7. #!/usr/bin/env python
  8.  
  9. # Simple SSH2 fix for you skidz having errors on your scan boxes
  10. # Made specifically for Ubuntu/Debian Based boxes
  11. # chmod +x ssh2fix.py && python ssh2fix.py
  12.  
  13. def run(cmd):
  14.     subprocess.call(cmd, shell=True)
  15.  
  16. print ("Updating and installing required packages!")  
  17. run("apt-get update && apt-get upgrade -y")
  18. run("apt-get install cpan wget curl glibc.i686 -y")
  19. run("cpan force install CPAN")
  20. run("cpan force install Parallel::ForkManager")
  21. run("cpan force install IO::Socket")
  22. run("cpan force install IO::Select")
  23. run("apt-get install gcc php-pear php-devel libssh2 libssh2-devel libpcap -y")
  24. run("pecl install -f ssh2")
  25. run("touch /etc/php.d/ssh2.ini")
  26. run("echo extension=ssh2.so > /etc/php.d/ssh2.ini")
  27. run("cpan force install Net::SSH2")
  28. run("ulimit -n 999999")
  29.    
  30. print("\x1b[0;35m There Nigger! Your Scanning Shits Are Fixed! Now Pay A Nigga!\x1b[0m")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement