Git Product home page Git Product logo

cpscan's Introduction

########################################################

          _______  ___ _______ ____
         / __/ _ \(_-</ __/ _ `/ _ \.
         \__/ .__/___/\__/\_,_/_//_/
           /_/ v 1.0 - susmithHCK

########################################################

cpscan is a simple admin panel finder coded in python. The script actually bruteforce the possible directories and returns the HTTP response code. you can add your own directories by editing "dir" file.

USAGE:

     -t  --target   - Target web server "example.com"
     -v  --verbose  - Enable verbose mode
     -h  --help     - show this menu

EXAMPLE:

      python cpscan.py -t targetsite.com -v

cpscan's People

Contributors

susmithkrishnan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cpscan's Issues

Throws syntax error in all versions of python.

python2 cpscan.py -t xxxxxxxxx -v

  •           _______  ___ _______ ____                                                                                  
    
           / __/ _ \(_-</ __/ _ `/ _ \.                                                                                
           \__/ .__/___/\__/\_,_/_//_/                                                                                 
             /_/ v 1.0 - susmithHCK                                                                                    
    
  • [11:35:09][info] Checking connection to target server

  • [11:35:09][info] Target server is up and running

  • [11:35:09][info] Initiating scan loading directory list

  • [11:35:09][info] Ruinning directory scan to the target server.

  • [11:35:09][info] 168 Directories loaded This may take a while pls wait..

  • Traceback (most recent call last):

  • File "cpscan.py", line 130, in

  • rcode=check(host,c_dir)
    
  • File "cpscan.py", line 51, in check

  • conn.request("HEAD", path)
    
  • File "/usr/lib/python2.7/httplib.py", line 1082, in request

  • self._send_request(method, url, body, headers)
    
  • File "/usr/lib/python2.7/httplib.py", line 1116, in _send_request

  • self.putrequest(method, url, **skips)
    
  • File "/usr/lib/python2.7/httplib.py", line 942, in putrequest

  • self._validate_path(url)
    
  • File "/usr/lib/python2.7/httplib.py", line 1032, in _validate_path

  • raise InvalidURL(msg)
    
  • httplib.InvalidURL: URL can't contain control characters. '/admin.aspx\r' (found at least '\r')

python3 cpscan.py -t xxxxxxxxxxx -v

  • File "/home/4K5H4Y/Desktop/cpscan/cpscan.py", line 25
  • print ""
    
  •       ^
    
  • SyntaxError: Missing parentheses in call to 'print'. Did you mean print("")?

After changing the line 25 to print("") it again shows the next line with same error. Total file is without the parentheses syntax so we need to change all??

python cpscan.py -t xxxxxx -v

  • File "/home/4K5H4Y/Desktop/cpscan/cpscan.py", line 25
  • print ""
    
  •       ^
    
  • SyntaxError: Missing parentheses in call to 'print'. Did you mean print("")?

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.