Giter Club home page Giter Club logo

pikachu's Issues

验证码刷新不出来,出现空白界面进来。

目前发现php7.4以后版本访问//pikachu/vul/xss/xsspost/xss_reflected_post.php输入admin/123456后会造成空白页面的问题和/pikachu/vul/burteforce/bf_server.php中验证码显示错误的问题。
原因:php7.4以后不支持大括号访问数组。
解决方案:修改/pikachu/inc/function.php中第35行中{}改为数组[],表现如下:$str .= $string{$pos} 改为 $str .= $string[$pos]

XSS的htmlspecialchars绕过,双引号问题

我在写这个的时候,看到了默认只对双引号转译。但当我实际提交查看网页源码时,发现<a herf="我输入的内容",即herf变成了双引号包裹,而输入中无法正常使用“,导致此题我解不出来。去网上看了一些其他帖子,他们的herf都是单引号包裹的。我特地看了一一下php代码文件,里面的确写的是单引号包裹,我很疑问这是为什么到网页上就变成双引号了。我使用的是XAMPP,PHP7。

bug: 非默认3306端口数据库连接失败

/inc/config.inc.php配置数据库host,user,password,dbname,dbport;
image
/install.php 初始化19行,22行均未读取对应dbport进行连接,导致初始化失败;
image
patch:
11行后添加$dbport=DBPORT;
19行修改为if(!@mysqli_connect($dbhost, $dbuser, $dbpw, "", $dbport)){
22行修改为$link=mysqli_connect(DBHOST, DBUSER, DBPW, "", DBPORT);

/index.php 14行同理未读取对应dbport进行连接,导致数据库读取失败;
image
patch:
14行修改为mysqli_connect(DBHOST,DBUSER,DBPW,DBNAME,DBPORT);

sql注入部分报错

在sql注入部分点击查询会产生报错,报错如下:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'member where id=1' at line 1
我的mysql的版本是8.0是否与这个有关?

求助数据库连接失败

我用的是压缩包版本的不是docker版本,解压后放到网站根目录下了
在本地连接得上
image
两个config.inc.php都改过来了
image
也分别试过了,1. 不创建两个数据库pikachu和pkxss 2. 提前创建pikachu和pkxss数据库 都会连接失败
image
还有一个线索,我第一次进的时候没有提示我进行初始化

xss_dom_x.php+号被解码成空格 导致加号无法使用

源码
function domxss(){
var str = window.location.search;
var txss = decodeURIComponent(str.split("text=")[1]);
var xss = txss.replace(/+/g,' ');
// alert(xss);

                    document.getElementById("dom").innerHTML = "<a href='"+xss+"'>就让往事都随风,都随风吧</a>";
                }

Bug:
当前decodeURIComponent和replace的实现顺序会将“+”和“%2B”都解码为空格

decodeURIComponent("x%2By+z").replace(/+/g, ' ')
< "x y z"

decodeURIComponent("x%2By+z".replace(/+/g, ' '))
< "x+y z"

install.php可以被利用来恶意重装靶场

不知道这算不算漏洞。。。刚入门。index.php中通过检验数据库是否可以连上数据库来判断是否配置完成。但是却可以直接访问install.php来直接覆盖掉原来数据库中的数据。我觉得应该在配置文件中设置一个$installed变量来控制已经安装,然后install.php读取这个变量来判断是否需要安装。

数据库莫名奇妙返回空值

image

有些靶场能正常使用。有些靶场打不开,打不开的靶场全是这个报错

Warning: mysqli_set_charset() expects parameter 1 to be mysqli, null given in C:\phpstudy_pro\WWW\pikachu\inc\mysql.inc.php on line 10

这个报错对应的地址的文件第十行的代码(我的PHP版本是5.4)

image

求解答谢谢

@zhuifengshaonianhanlu

mac系统 php 8.1.6 需要使用PDO连接数据库

MAC系统中,个人使用的最新版xampp,php版本为8.1.6,mysqli_connect函数可以连接正确的数据库,但是一旦尝试连接错误的数据库,不会返回错误信息,网页直接显示500

XSS后台异常

所有功能正常(mysql初始化正常),进入XSS控制台报 数据库无法连接。
查看代码发现 pkxss/pkxss_install.php 的include 的路径是一个新的mysql配置文件。

这种不符合一次配置全局运行的理念,容易给人造成困扰。可以改为都使用一个配置文件。

xss后台出错

Fatal error: Uncaught TypeError: mysqli_fetch_assoc(): Argument #1 ($result) must be of type mysqli_result, bool given in /www/wwwroot/pikachu.mikea.ltd/pikachu-master/pkxss/xcookie/pkxss_cookie_result.php:46 Stack trace: #0 /www/wwwroot/pikachu.mikea.ltd/pikachu-master/pkxss/xcookie/pkxss_cookie_result.php(46): mysqli_fetch_assoc() #1 {main} thrown in /www/wwwroot/pikachu.mikea.ltd/pikachu-master/pkxss/xcookie/pkxss_cookie_result.php on line 46

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.