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: Virustotal probably now is blocking our requests #194

Open
GDATTACKER-RESEARCHER opened this issue Nov 5, 2019 · 34 comments
Open

Comments

@GDATTACKER-RESEARCHER
Copy link

[!] Error: Virustotal probably now is blocking our requests

@DustinTheGreat
Copy link

This error isn't new, they just need to rewrite the send_req() function.

@latest-release
Copy link

latest-release commented Nov 21, 2019

The problem is not with send_req, it seems virus total changed there url from
https://www.virustotal.com/ui/domains/{domain}/subdomains this one leads to this error

error |  
-- | --
code | "BadRequestError"
message | "Don't be evil"

https://www.virustotal.com/gui/domain/{{dommain}}/details this one works

We faced such a problem when we dealt with this tool at Nmmapper
We investigate and the problem is with the url.

Though I would suggest they offer an option of providing api for virustotal

@unaipuelles
Copy link

Same error here. The first two times worked perfectly but some days after the same error appears: "[!] Error: Virustotal probably now is blocking our requests". Any solution for this problem?

@Leoangelo-45
Copy link

Same error here. The first two times worked perfectly but some days after the same error appears: "[!] Error: Virustotal probably now is blocking our requests". Any solution for this problem?

Any solution?

@crahan
Copy link

crahan commented Nov 21, 2020

I submitted a quick fix for this issue via #285. The pull request adds a check for a VT_APIKEY environment variable to use for the VirusTotal request. If the API key is missing, it prints an error message and skips the VirusTotal engine.

Screen Shot 2020-11-22 at 00 38 26

@Toriqulislamshimanto
Copy link

@crahan How did you import api key inside the sublist3r

@crahan
Copy link

crahan commented Nov 29, 2020

I use the below code snippet in my .zshrc (or .bashrc) configuration file, which will load the API key from a text file (if it exists) whenever I open a shell. Alternatively you can just run export VT_APIKEY=yourapikey manually before using Sublist3r.

# VirusTotal
if [[ -f "${HOME}/.api_tokens/vt_apikey" ]]; then
    export VT_APIKEY="$(cat ${HOME}/.api_tokens/vt_apikey 2> /dev/null)"
fi

@Toriqulislamshimanto
Copy link

Toriqulislamshimanto commented Nov 29, 2020

@crahan sorry for my dumb request...I am new to this Linux platform... I still couldn't fix my issue...Can you give me step-by-step instructions... Once again please accept my apology !!!

@crahan
Copy link

crahan commented Nov 29, 2020

You'll need to first install a copy with my fixes before you'll be able to use the API key solution. Without a patched (and working) copy of Sublist3r it might be a little tricky to set up.

@Toriqulislamshimanto
Copy link

@crahan I did change the code as you said...But I get "Error: VirusTotal API key environment variable not found. Skipping" !!!
How do I export the API key inside the sublist3r ?? Thanks for responding by the way

@crahan
Copy link

crahan commented Nov 29, 2020

No problem. Right before you run the Sublist3r command run the following:

export VT_APIKEY=yourapikey (replace 'yourapikey' with the actual VirusTotal API key)

After that, in the same terminal window, run the Sublist3r command. That should be all that's required.

@crahan
Copy link

crahan commented Nov 29, 2020

Based on that error, I don't think it's running the patched version of the code.

@Toriqulislamshimanto
Copy link

@crahan Nah....My bad.........It's is working again.....Thanks for your help brother......I won't forget your kindness !!!

@crahan
Copy link

crahan commented Nov 29, 2020

Awesome, happy to hear all is well. Keep in mind though that free VirusTotal accounts have a cap on the number of API requests per minute (I think it's 4, last I checked). So you still might see errors if you query too quickly with Sublist3r.

@thecanadiananonymity
Copy link

<script>alert(1)</script>

@shabbadont
Copy link

Based on that error, I don't think it's running the patched version of the code.

How do you patch?

@RoninNakomoto
Copy link

@crahan @Toriqulislamshimanto @Leoangelo-45 @latest-release @GDATTACKER-RESEARCHER @DustinTheGreat

check my fork. its a fixed bug-free working copy (only runs under python3 if properly installed), also has much faster bruteforcing capabilities using aiodnsbrute (instead of subbrute).
@crahan i used ur PR code as a basis to fix virustotal access problem but also added ability to enter key during runtime and it now catches error codes and messages as returned by VT API.

@Azadn70
Copy link

Azadn70 commented Aug 26, 2021

[!] Error: Virustotal probably now is blocking our requests
after input av code

@theteleforce
Copy link

For those who still want to use this version, I have added a minimal fix in #327 that doesn't require an API key. This should restore Virustotal checks to working as normal.

@martijorba
Copy link

No problem. Right before you run the Sublist3r command run the following:

export VT_APIKEY=yourapikey (replace 'yourapikey' with the actual VirusTotal API key)

After that, in the same terminal window, run the Sublist3r command. That should be all that's required.

what is the actual VirusTotal API key?

@martijorba
Copy link

No problem. Right before you run the Sublist3r command run the following:

export VT_APIKEY=yourapikey (replace 'yourapikey' with the actual VirusTotal API key)

After that, in the same terminal window, run the Sublist3r command. That should be all that's required.

it doesn't work, some help?

@firingdove
Copy link

terminal window, run the Sublist3r command. That should be all that's required.

Sorry I did that but I am still getting the error. help please.

@DavidFrds
Copy link

DavidFrds commented Oct 31, 2022

Hey, worked fine for me.
First of all make sure you update your sublis3r file (/usr/lib/python3/dist-packages/sublist3r.py) with the fix added by crahan > Files changed
Then export your VT_APIKEY with the command export VT_APIKEY=yourAPIkey before starting sublist3r.

To have your personal Virustotal API Key, you can follow this documentation

@lincasaires
Copy link

NOT WORKING FOR ME TOO =´[

@firingdove
Copy link

NOT WORKING FOR ME TOO =´[
I hope I am not replying late. it worked for me. follow @adves34 instructions. if its not still working please send me a message. I will walk through it with you. thanks

@repra22
Copy link

repra22 commented Nov 29, 2022

Exporting the API didn't worked for me as well

@proverbian
Copy link

For those who still want to use this version, I have added a minimal fix in #327 that doesn't require an API key. This should restore Virustotal checks to working as normal.

Saved my day! Works like a charm! Thank you!

@CHARANPRAVEENKUMAR
Copy link

No problem. Right before you run the Sublist3r command run the following:

export VT_APIKEY=yourapikey (replace 'yourapikey' with the actual VirusTotal API key)

After that, in the same terminal window, run the Sublist3r command. That should be all that's required.

how to get our api key?

@DavidFrds
Copy link

everything is written here : documentation

@ArsalanAbbassi
Copy link

No problem. Right before you run the Sublist3r command run the following:

export VT_APIKEY=yourapikey (replace 'yourapikey' with the actual VirusTotal API key)

After that, in the same terminal window, run the Sublist3r command. That should be all that's required.

sorry for asking dumb question i'm new to linux how can i find my API of virus total

@akramknf
Copy link

just create an account and they will give you an api key

@Morgoth04
Copy link

Same error here. The first two times worked perfectly but some days after the same error appears: "[!] Error: Virustotal probably now is blocking our requests". Any solution for this problem?

Any solution?

Almost 4 years late, sorry:

  1. The url line in the class corresponding to Virustotal (class Virustotal(enumratorBaseThreaded):) of the sublist3er.py program must be corrected (base_url = 'https://www.virustotal.com/api/v3/domains/{domain}/subdomains').
    2)2) Place the apikey that was obtained once registered as a virustotal user in the variable sel.apikey (self.apikey = os.getenv('VT_APIKEY', 'hereenterthealphanumeric code'))
    3)Save the file
  2. Overwrite the sublist3r.py file in the Kali Linux path where the one you have was placed
  3. Try with the command sudo ./sublist3r.py -d domainchosen.com

@JFOZ1010
Copy link

Your second point is not working, por si las moscas.

@nk3015
Copy link

nk3015 commented Nov 5, 2024

This is still an open issue.

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

No branches or pull requests