Git Product home page Git Product logo

inspathx's Introduction

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)












inspathx's People

inspathx's Issues

Google Code closing

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

ERROR: undefined method `closed?' for nil:NilClass

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

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.