r3curs1v3-pr0xy / sub404

A python tool to check subdomain takeover vulnerability
GNU General Public License v3.0
328 stars 61 forks source link

[Issue] Unable to install globally #4

Closed Aju100 closed 3 years ago

Aju100 commented 3 years ago

Hey @r3curs1v3-pr0xy ,

I am not able to install globally sub404 instead of manually workouts like this

python3 sub404.py -h

I wanted to use it globally like this one.

sub404

Steps to reproduce the issue

    git clone https://github.com/r3curs1v3-pr0xy/sub404.git
    pip3 install -r sub404/requirements.txt
    sudo chmod +x sub404/sub404.py
    sudo cp sub404/sub404.py /usr/bin/sub404

Errors

import: unable to grab mouse '': No such file or directory @ error/xwindow.c/XSelectWindow/9301.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/4933.
import: unable to read X window image '': Success @ error/xwindow.c/XImportImage/5040.
import:  `subprocess' @ error/import.c/ImportImageCommand/1288.
/usr/bin/sub404: line 6: syntax error near unexpected token `'win''
/usr/bin/sub404: line 6: `if sys.platform.startswith('win'):'
r3curs1v3-pr0xy commented 3 years ago

Hi Aju

You can do this by adding a shebang at the beginning of sub404.py file. Edit sub404.py and at this line at the top

#!/bin/python3

After this, run this command:

  1. sudo chmod +x sub404/sub404.py
  2. sudo cp sub404/sub404.py /usr/bin/sub404

After this you can use this tool just by typing sub404.

Aju100 commented 3 years ago

Hi @r3curs1v3-pr0xy

Thank you now it's working by your given code. Some might will definitely face this issue.

#!/usr/bin/python

Also sent PR #5

r3curs1v3-pr0xy commented 3 years ago

Merged

Aju100 commented 3 years ago

Thank you @r3curs1v3-pr0xy .