dkeifer00 / inspathx Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/inspathx
License: GNU General Public License v3.0
Automatically exported from code.google.com/p/inspathx
License: GNU General Public License v3.0
Internal Path Discloser / Error Hunter license: GPL released date: 2010-09-28 last update: 2011-10-02 (c) Aung Khant, http://yehg.net YGN Ethical Hacker Group, Yangon, Myanmar Check the update via svn checkout http://inspathx.googlecode.com/svn/trunk/ inspathx Send bugs, suggestions, contributions to inspath at yehg .net How's it useful? Web application developers sometimes fail to add safe checks against authentications, file inclusion, which could lead to possible sensitive information disclosure when application URLs are directly requested. Sometimes, it's a clue to File Inclusion vulnerability. For open-source applications, source code can be downloaded and checked to find such information. This script will do this job. First you have to download source archived file of your desired OSS. Second, extract it. Third, feed its path to inspathx. The inspath can take the following options: Required -d with source directory (of application like /src/webapp/phpmyadmin) -u with the target base URL (like http://localhost - not http://localhost/index.php) Optional -t with the number of threads concurrently to run (default is 10) -l with the language [one of php,asp,aspx,jsp,cfm,all] (default is all) -x with your desired extensions separated by comma(s) (default : php4,php5,php6,php,asp,aspx,jsp,jspx,cfm) -k, --keycert <pemfile> client key + cert PEM file -m/--method with http method (either get or post) -q/--data with http data ("a=1&b=2") -h/--headers with http headers (format: "x-ping-back: %00\r\ncookie: %00) -p/--param-array flag that makes inpathx identify parameters (a=1&b=2) in target url and submit with arrayified parameters (a[]=1&b[]=2) -n/--null-cookie flag to send session cookies with null value -f/--follow flag to indicate whether you want inpathx to follow http redirection Check out EXAMPLES for more options and usage See EXAMPLES for more information. Read the related text: http://yehg.net/lab/pr0js/view.php/path_disclosure_vulnerability.txt Alternatively use portable bash versions if you wish: http://www.pentesterscripting.com/discovery/web_requester http://www.pentesterscripting.com/exploitation/bash_web_parameter_fuzzer Contribute your ideas/suggestions on various web languages (currently supported PHP, ASP(X), JSP(X), CFM)
Google Code service is closing. Do you have plans to move this project to
GitHub or similar hosting service?
Original issue reported on code.google.com by [email protected]
on 30 May 2015 at 9:26
What steps will reproduce the problem?
Run with "-f" flag.
./inspathx.rb -d ../../wordpress-3.2.1/ -u
http://192.168.1.113//wordpress-3.2.1/ -l php -x php -n -f -p 1
What is the expected output? What do you see instead?
:( ->
http://wpcd/wordpress-3.2.1/wp-login.php?redirect_to=http%3A%2F%2F192.168.1.113%
2Fwordpress-3.2.1%2Fwp-admin%2Flink-manager.php%3F%26feed%5B%5D%3D%26page_id%5B%
5D%3D%26p%5B%5D%3D%26author%5B%5D%3D%26cat%5B%5D%3D%26m%5B%5D%3D%26&reauth=1
ERROR:
undefined method `closed?' for nil:NilClass
-> http://192.168.1.113/wordpress-3.2.1/wp-admin/network.php | 302
(Redirected to :
http://wpcd/wordpress-3.2.1/wp-login.php?redirect_to=http%3A%2F%2F192.168.1.113%
2Fwordpress-3.2.1%2Fwp-admin%2Fnetwork.php%3F%26feed%5B%5D%3D%26page_id%5B%5D%3D
%26p%5B%5D%3D%26author%5B%5D%3D%26cat%5B%5D%3D%26m%5B%5D%3D%26&reauth=1)
:( ->
http://wpcd/wordpress-3.2.1/wp-login.php?redirect_to=http%3A%2F%2F192.168.1.113%
2Fwordpress-3.2.1%2Fwp-admin%2Fnetwork.php%3F%26feed%5B%5D%3D%26page_id%5B%5D%3D
%26p%5B%5D%3D%26author%5B%5D%3D%26cat%5B%5D%3D%26m%5B%5D%3D%26&reauth=1
ERROR:
undefined method `closed?' for nil:NilClass
-> http://192.168.1.113/wordpress-3.2.1/wp-admin/plugin-install.php | 302
(Redirected to :
http://wpcd/wordpress-3.2.1/wp-login.php?redirect_to=http%3A%2F%2F192.168.1.113%
2Fwordpress-3.2.1%2Fwp-admin%2Fplugin-install.php%3F%26feed%5B%5D%3D%26page_id%5
B%5D%3D%26p%5B%5D%3D%26author%5B%5D%3D%26cat%5B%5D%3D%26m%5B%5D%3D%26&reauth=1)
:( ->
http://wpcd/wordpress-3.2.1/wp-login.php?redirect_to=http%3A%2F%2F192.168.1.113%
2Fwordpress-3.2.1%2Fwp-admin%2Fplugin-install.php%3F%26feed%5B%5D%3D%26page_id%5
B%5D%3D%26p%5B%5D%3D%26author%5B%5D%3D%26cat%5B%5D%3D%26m%5B%5D%3D%26&reauth=1
ERROR:
undefined method `closed?' for nil:NilClass
-> http://192.168.1.113/wordpress-3.2.1/wp-admin/index-extra.php | 302
(Redirected to :
http://wpcd/wordpress-3.2.1/wp-login.php?redirect_to=http%3A%2F%2F192.168.1.113%
2Fwordpress-3.2.1%2Fwp-admin%2Findex-extra.php%3F%26feed%5B%5D%3D%26page_id%5B%5
D%3D%26p%5B%5D%3D%26author%5B%5D%3D%26cat%5B%5D%3D%26m%5B%5D%3D%26&reauth=1)
What version of the product are you using? On what operating system?
Revision: 89
ruby 1.8.7 (2010-01-10 patchlevel 249) [i486-linux]
Linux lamp 2.6.32-26-generic #48-Ubuntu SMP Wed Nov 24 09:00:03 UTC 2010 i686
GNU/Linux
Please provide any additional information below.
Error only appears when using the "-f" option.
Original issue reported on code.google.com by [email protected]
on 4 Oct 2011 at 10:26
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.