Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find config file #5

Open
nikitastupin opened this issue Jun 21, 2020 · 5 comments
Open

Error: Cannot find config file #5

nikitastupin opened this issue Jun 21, 2020 · 5 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@nikitastupin
Copy link

nikitastupin commented Jun 21, 2020

Hi,

I've tried to use another config with -c option but smuggler returns an error:

$ python3 smuggler.py -c configs/doubles.py -u https://example.com 

  ______                         _              
 / _____)                       | |             
( (____  ____  _   _  ____  ____| | _____  ____ 
 \____ \|    \| | | |/ _  |/ _  | || ___ |/ ___)
 _____) ) | | | |_| ( (_| ( (_| | || ____| |    
(______/|_|_|_|____/ \___ |\___ |\_)_____)_|    
                    (_____(_____|               

     @defparam                         v1.1

[+] URL        : https://example.com
[+] Method     : POST
[+] Endpoint   : /
[+] Configfile : configs/doubles.py
[+] Timeout    : 5.0 seconds
[+] Cookies    : 0 (Appending to the attack)
[+] Error      : Cannot find config file

P.S. Hackish way to get around this is to copy desired config to default.py 😃
P.P.S. Thanks for the tool!

@nikitastupin
Copy link
Author

nikitastupin commented Jun 21, 2020

$ python3 --version
Python 3.7.7

macOS Catalina 10.15.5

@defparam
Copy link
Owner

Hey Nikita,

Thanks for reporting the issue. This could be a documentation issue but the script searches for config files starting at the configs directory. The command for using doubles.py should be:

python3 smuggler.py -c doubles.py -u https://example.com

Please try that and let me know. Don’t self-close this issue, at a minimum I want to update the documentation.

Thanks!
Evan

@defparam defparam self-assigned this Jun 21, 2020
@defparam defparam added the documentation Improvements or additions to documentation label Jun 21, 2020
@nikitastupin
Copy link
Author

Hi Evan,

python3 smuggler.py -c doubles.py -u https://example.com this works just fine :)

Thanks for your response!

@ayush-bagde
Copy link

Sir Can we input our config file?? If yes, how because everytime i input the location or put .py file in config folder still shows config file not found. As you can see in the picture
Screenshot from 2020-07-19 18-09-42

@dannypete
Copy link

dannypete commented Oct 14, 2020

@TechnicalPredator Smuggler has a small bug in attempting to figure out if the passed configfile path is an absolute path. As a result, the best bet is to put your configfile in the project's configs (e.g. "myconfig.py") folder and then use argument e.g. -c myconfig.py.

I've made a tiny PR for this. #22

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants