Advertisement
MrScythe

[PYTHON] SSH2 Fix lulz by MrScythe

Dec 31st, 2017
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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 and shit idk skids here u go lulz
  10. # Versions >> Ubuntu/Debian Based OS's
  11. # chmod +x ssh2fix.py && python ssh2fix.py
  12. # Created by MrScythe lulz
  13.  
  14. def run(cmd):
  15. subprocess.call(cmd, shell=True)
  16.  
  17. print ("First gonna update some shit then install ur depends")
  18. run("apt-get update && apt-get upgrade -y")
  19. run("apt-get install cpan wget curl glibc.i686 -y")
  20. run("cpan force install CPAN")
  21. run("cpan force install Parallel::ForkManager")
  22. run("cpan force install IO::Socket")
  23. run("cpan force install IO::Select")
  24. run("apt-get install gcc php-pear php-devel libssh2 libssh2-devel libpcap -y")
  25. run("pecl install -f ssh2")
  26. run("touch /etc/php.d/ssh2.ini")
  27. run("echo extension=ssh2.so > /etc/php.d/ssh2.ini")
  28. run("cpan force install Net::SSH2")
  29. run("ulimit -n 999999")
  30.  
  31. print("\x1b[0;35m Done Nigger, Enjoy ur shitting scanning or watev lulz\x1b[0m")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement