Sublist3r icon indicating copy to clipboard operation
Sublist3r copied to clipboard

Fix for VirusTotal error

Open crahan opened this issue 4 years ago • 9 comments

This PR fixes the outdated VirusTotal API endpoint which has been reported in https://github.com/aboul3la/Sublist3r/issues/194. It uses the value specified in the VT_APIKEYenvironment variable. If the the API key is missing, it prints an error message and skips the VirusTotal engine.

Screen Shot 2020-11-22 at 00 38 26

crahan avatar Nov 21 '20 23:11 crahan

I did fix accordingly to yours And I also changed VT_APIKEY into my API key But the error keep showing [!] Error: VirusTotal API key environment variable not found. Skipping

How to fix that?

GiangTieuDau avatar Nov 23 '20 17:11 GiangTieuDau

@GiangTieuDau try the following on lines 690 and 691.

self.headers.update({'X-ApiKey': self.apikey})
print(self.headers)
resp = self.session.get(url, headers=self.headers, timeout=self.timeout)
print(resp.json())

And check the value of the headers you're sending and the response JSON that gets returned. Either the API key is not being sent, the API is not correct and causes an error, or some other error is happening. Printing either of those values should get you more details.

crahan avatar Nov 23 '20 18:11 crahan

I did fix accordingly to yours And I also changed VT_APIKEY into my API key But the error keep showing [!] Error: VirusTotal API key environment variable not found. Skipping

How to fix that? @GiangTieuDau @crahan export the API KEY And run the tool without the sudo. It will solve ur problem. you are running the tool as sudo while you're exporting the API_KEY into the current user's environment.

RoninNakomoto avatar Jan 23 '21 08:01 RoninNakomoto

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

😑😑😑😑😑.... Someone help me out Thank You

Mayor294 avatar Oct 23 '21 13:10 Mayor294

Worked for me. Thank you :))

ashifly avatar Jun 29 '22 09:06 ashifly

This actually helps me thx!

owenrrr avatar Aug 25 '22 04:08 owenrrr

@GiangTieuDau try the following on lines 690 and 691.

self.headers.update({'X-ApiKey': self.apikey})
print(self.headers)
resp = self.session.get(url, headers=self.headers, timeout=self.timeout)
print(resp.json())

And check the value of the headers you're sending and the response JSON that gets returned. Either the API key is not being sent, the API is not correct and causes an error, or some other error is happening. Printing either of those values should get you more details.

Where do I type this into

SkySlic3 avatar Jul 29 '23 18:07 SkySlic3

it's not working for me i've tried all the things discussed, can any one help me out please :(

soukainazay avatar Aug 27 '23 16:08 soukainazay

@GiangTieuDau try the following on lines 690 and 691.

self.headers.update({'X-ApiKey': self.apikey})
print(self.headers)
resp = self.session.get(url, headers=self.headers, timeout=self.timeout)
print(resp.json())

And check the value of the headers you're sending and the response JSON that gets returned. Either the API key is not being sent, the API is not correct and causes an error, or some other error is happening. Printing either of those values should get you more details.

Where do I type this into

in the Sublist3r.py file (type gedit ./sublist3r.py to modify) i've tried it and it's not working for me. did u find another way to solve this?

soukainazay avatar Aug 27 '23 16:08 soukainazay