jofpin / trape

People tracker on the Internet: OSINT analysis and research tool by Jose Pino
https://x.com/jofpin
8.11k stars 1.3k forks source link

[x] ERROR: local variable 'config_trape' referenced before assignment #218

Open ashwitha112 opened 4 years ago

ashwitha112 commented 4 years ago

[x] ERROR: local variable 'config_trape' referenced before assignment

BreathOfShadow commented 4 years ago

I have same problem, and many people too.. How fix this ?

sumit006485 commented 4 years ago

how fix this problem??

roltsolen commented 4 years ago

Comment is by someone else, but it helped me. So you can try it for yourself. If you need help just let me know. "Hello my good friends here is the solution to the loop. Steps:

Visit your trape folder. 2 Open the core folder and you'll find trape.py. Open the trape.py folder and do what I'll illustrate. Do this : find: v = '{\n\t"ngrok_token" : "' + c_nGrokToken + '",\n\t"gmaps_api_key" : "' + c_gMapsToken + '",\n\t"gshortener_api_key" : "' + c_gOoglToken + '"\n\t"ipinfo_api_key" : "' + c_ipinfo + '",\n}' replace with: v = '{\n\t"ngrok_token" : "' + c_nGrokToken + '",\n\t"gmaps_api_key" : "' + c_gMapsToken + '",\n\t"gshortener_api_key" : "' + c_gOoglToken + '",\n\t"ipinfo_api_key" : "' + c_ipinfo + '"\n}' Find me later and buy some lunch haha."

Basically what you need to change is the final line from: (Commas) '"\n\t"ipinfo_api_key" : "' + c_ipinfo + '",\n}' TO: '",\n\t"ipinfo_api_key" : "' + c_ipinfo + '"\n}'

Zomka commented 4 years ago

Traceback (most recent call last): File "trape.py", line 24, in from core.trape import Trape # File "/root/trape/core/trape.py", line 282 v = '{\n\t"ngrok_token" : "' + c_nGrokToken + '",\n\t"gmaps_api_key" : "' + c_gMapsToken + '",\n\t"gshortener_api_key" : "' + c_gOoglToken + '"\n\t"ipinfo_api_key" : "' + c_ipinfo + '",\n}'v = '{\n\t"ngrok_token" : "' + c_nGrokToken + '",\n\t"gmaps_api_key" : "' + c_gMapsToken + '",\n\t"gshortener_api_key" : "' + c_gOoglToken + '",\n\t"ipinfo_api_key" : "' + c_ipinfo + '"\n}' ^ SyntaxError: invalid syntax

roltsolen commented 4 years ago

Basically what you need to change is the final line from: (Commas) '"\n\t"ipinfo_api_key" : "' + c_ipinfo + '",\n}' TO: '",\n\t"ipinfo_api_key" : "' + c_ipinfo + '"\n}' -^------------------------------------^ There is 2 commas you need to change And even after that you get an error with the code. As I only could fix this error there was another, Id recommend use another code or make one yourself this code is old and isn't working that well.

Zomka commented 4 years ago

Thanks, I already figured it out

Orangeeye777 commented 4 years ago

[x] ERROR: local variable 'config_trape' referenced before assignment

ISSUE RESOLVED :

Update the details properly while configuring the trape.config i have use below site, create the account

  1. ngrok - for ngrok_token
  2. app.ipgeolocation.io - for gmaps_api_key
  3. No need to update google url shorner
  4. ipinfo.io - for ipinfo_api_key Then hit ENTER. we are done...