jofpin / trape

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

Dear Sensei! #271

Open Sallysheridan opened 3 years ago

Sallysheridan commented 3 years ago

I have been trying to run Trape one way or another I need it badly! Today after installing it again.. and running requirements.txt and utils and db. I got this results.. Note I am runing simultaneously on VM and a phisical pc. Both same results also changing rw permissions. I know you are extremely bussy,, and your v3 is more than acclaimed.. but meantime,, help us to get it back and running.

Please ....SS.

_                                                                      
    | |_   ____ ____ ____   ____                                            
    |  _) / ___) _  |  _ \ / _  )                                           
    | |__| |  ( ( | | | | ( (/ /                                            
     \___)_|   \_||_| ||_/ \____)                                           
                    |_| 2018 by Jose Pino (@jofpin)                         
    -----------------------------------------------                         
    People tracker on internet for OSINT research |=-                       
    -----------------------------------------------                         
    | v2.0 |                                                                
    --------                                                                

    @-=[ UPDATES: RUNNING RECENT VERSION                                    

    LOCAL INFORMATION                                                       
    -------------------                                                     
    >-=[ Lure for the users: http://192.168.100.28:8080/www.whatsapp.com    
    >-=[ Your REST API path: http://192.168.100.28:8080/016047da189a.js     
    >-=[ Control Panel Link: http://127.0.0.1:8080/ngrok                    
    >-=[ Your Access key: c27af40ec449f6652bd633e9                          

Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/whatsapp/trape/core/ngrok.py", line 81, in start_ngrok
result = subprocess.check_output([str_ngrok, "http", port])
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['./ngrok', 'http', '8080']' returned non-zero exit status 1
PUBLIC INFORMATION


    >-=[ Public lure: http://ba415709b359.ngrok.io/www.whatsapp.com         
    >-=[ Control Panel link: http://ba415709b359.ngrok.io/ngrok             

[>] Start time: 2020-11-06 - 02:21:32
[?] Do not forget to close Trape, after use. Press Control C

[¡] Waiting for the users to fall...

^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[A^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B^[[B[2020-11-06 02:24:06,775] ERROR in app: Exception on /www.whatsapp.com [GET]
Traceback (most recent call last):
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/whatsapp/.local/lib/python2.7/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(args, kwargs)))
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](
req.view_args)
File "/whatsapp/trape/core/user.py", line 69, in homeVictim
html = assignScripts(victim_inject_code(opener.open(trape.url_to_clone).read(), 'payload', trape.url_to_clone, trape.gmaps, trape.ipinfo))
File "/whatsapp/trape/core/dependence/urllib2.py", line 406, in open
response = meth(req, response)
File "/whatsapp/trape/core/dependence/urllib2.py", line 519, in http_response 'http', request, response, code, msg, hdrs)
File "/whatsapp/trape/core/dependence/urllib2.py", line 444, in error
return self._call_chain(
args)
File "/whatsapp/trape/core/dependence/urllib2.py", line 378, in _call_chain
result = func(args)
File "/whatsapp/trape/core/dependence/urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request
[2020-11-06 02:24:07,145] ERROR in app: Exception on /www.whatsapp.com [GET]
Traceback (most recent call last):
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/whatsapp/.local/lib/python2.7/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(
args, kwargs)))
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](
req.view_args)
File "/whatsapp/trape/core/user.py", line 69, in homeVictim
html = assignScripts(victim_inject_code(opener.open(trape.url_to_clone).read(), 'payload', trape.url_to_clone, trape.gmaps, trape.ipinfo))
File "/whatsapp/trape/core/dependence/urllib2.py", line 406, in open
response = meth(req, response)
File "/whatsapp/trape/core/dependence/urllib2.py", line 519, in http_response 'http', request, response, code, msg, hdrs)
File "/whatsapp/trape/core/dependence/urllib2.py", line 444, in error
return self._call_chain(args)
File "/whatsapp/trape/core/dependence/urllib2.py", line 378, in _call_chain
result = func(
args)
File "/whatsapp/trape/core/dependence/urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request

Sallysheridan commented 3 years ago

Aditional notes: cloning any page it works perfect, I am using an internal ngrok the Google API Key and maps are ok now.. even though still not opening the map old attempts I did before were able to detect the lured user, but now not. Installed Python 2 and Python3 on separate folders with active version on Python2 Kali updated with all packs ,,, YOUR WISDOM WILL ILLUMINATE OUR PAD!!
Thanks Jospin!

nymbuzcumulus commented 3 years ago

I believe the issue might be into connecting with ngrok.. but since I have installed, requirements.txt and runing well as python2 there shouldnt be any issue.. but still get that ..

Sallysheridan commented 3 years ago

UPdate..... I have removed Python2.7 and reinstalled. As well Reinstalled a new clean TRAPE Reinstaled requirements.txt Launched TRAPE and gave my ngrok, and Google Api KEYS. Result is identical.

_ _) / __) \ / ) __ ( ( ( (/ /
__)
_ _ _/ ____) _ 2018 by Jose Pino (@jofpin)
People tracker on internet for OSINT research =-
    -----------------------------------------------                                                   
    | v2.0 |                                                                                          
    --------                                                                                          

    @-=[ UPDATES: RUNNING RECENT VERSION                                                              

    LOCAL INFORMATION                                                                                 
    -------------------                                                                               
    >-=[ Lure for the users: http://192.168.100.28:8080/facebook.com                                  
    >-=[ Your REST API path: http://192.168.100.28:8080/28d030ce4228.js                               
    >-=[ Control Panel Link: http://127.0.0.1:8080/ngrok                                              
    >-=[ Your Access key: 47d37a52e86994e96fe4d762                                                    

Process Process-1:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
self.run()
File "/usr/lib/python2.7/multiprocessing/process.py", line 114, in run
self._target(*self._args, **self._kwargs)
File "/whatsapp/trape/core/ngrok.py", line 81, in start_ngrok
result = subprocess.check_output([str_ngrok, "http", port])
File "/usr/lib/python2.7/subprocess.py", line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['./ngrok', 'http', '8080']' returned non-zero exit status 1
PUBLIC INFORMATION


    >-=[ Public lure: http://f86da7ef0051.ngrok.io/facebook.com                                       
    >-=[ Control Panel link: http://f86da7ef0051.ngrok.io/ngrok                                       

[>] Start time: 2020-11-06 - 15:23:02
[?] Do not forget to close Trape, after use. Press Control C

[¡] Waiting for the users to fall...

Sallysheridan commented 3 years ago

Note: I have also run -ud update .. and still same changed Folder permissions to chmod 777 -R

same result .

Sallysheridan commented 3 years ago

OK... after re-reading last error.. I understand that Trape calls ngrok automatically, even it doesent shows a terminal window, but yes. it calls ngrok. Now I was having a Terminal open with ngrok on last attempts. so this time I did not opened ngrok, so Trape shows correct in terminal without the errors.

So I did started it and the result is this. First when sending to other pc or cell theres an internal server error. then Terminal shows the following.. I think we are close but still need your help sensei!

_ _ _) / __) \ / ) __ ( ( ( (/ /
__)
_ _ _/ ____) _ 2018 by Jose Pino (@jofpin)
People tracker on internet for OSINT research =-
    -----------------------------------------------                                                   
    | v2.0 |                                                                                          
    --------                                                                                          

    @-=[ UPDATES: RUNNING RECENT VERSION                                                              

    LOCAL INFORMATION                                                                                 
    -------------------                                                                               
    >-=[ Lure for the users: http://192.168.100.28:8080/facebook.com                                  
    >-=[ Your REST API path: http://192.168.100.28:8080/85fcd6f730b2.js                               
    >-=[ Control Panel Link: http://127.0.0.1:8080/ngrok                                              
    >-=[ Your Access key: de163bca43097c9462eccd6a                                                    

    PUBLIC INFORMATION                                                                                
    -------------------                                                                               
    >-=[ Public lure: http://61bd5efc833b.ngrok.io/facebook.com                                       
    >-=[ Control Panel link: http://61bd5efc833b.ngrok.io/ngrok                                       

[>] Start time: 2020-11-06 - 15:27:37
[?] Do not forget to close Trape, after use. Press Control C

[¡] Waiting for the users to fall...

[2020-11-06 15:30:09,120] ERROR in app: Exception on /facebook.com [GET]
Traceback (most recent call last):
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 2447, in wsgi_app
response = self.full_dispatch_request()
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/whatsapp/.local/lib/python2.7/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(args, kwargs)))
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1821, in handle_user_exception
reraise(exc_type, exc_value, tb)
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
rv = self.dispatch_request()
File "/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request
return self.view_functions[rule.endpoint](
req.view_args)
File "/whatsapp/trape/core/user.py", line 69, in homeVictim
html = assignScripts(victim_inject_code(opener.open(trape.url_to_clone).read(), 'payload', trape.url_to_clone, trape.gmaps, trape.ipinfo))
File "/whatsapp/trape/core/dependence/urllib2.py", line 406, in open
response = meth(req, response)
File "/whatsapp/trape/core/dependence/urllib2.py", line 519, in http_response
'http', request, response, code, msg, hdrs)
File "/whatsapp/trape/core/dependence/urllib2.py", line 438, in error
result = self._call_chain(
args)
File "/whatsapp/trape/core/dependence/urllib2.py", line 378, in _call_chain
result = func(args)
File "/whatsapp/trape/core/dependence/urllib2.py", line 625, in http_error_302
return self.parent.open(new, timeout=req.timeout)
File "/whatsapp/trape/core/dependence/urllib2.py", line 406, in open
response = meth(req, response)
File "/whatsapp/trape/core/dependence/urllib2.py", line 519, in http_response
'http', request, response, code, msg, hdrs)
File "/whatsapp/trape/core/dependence/urllib2.py", line 444, in error
return self._call_chain(
args)
File "/whatsapp/trape/core/dependence/urllib2.py", line 378, in _call_chain
result = func(*args)
File "/whatsapp/trape/core/dependence/urllib2.py", line 527, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 400: Bad Request

nymbuzcumulus commented 3 years ago

Did a Clean Kali Install, installed Python 2 and PIP : Installed Trape and requirements it runs ...but.... the lure page comes as a bad gateway, and cant register on panel. here the sample and errors taht come after opening the lure page .. please help us to fix :)

 _                           
| |_   ____ ____ ____   ____ 
|  _) / ___) _  |  _ \ / _  )
| |__| |  ( ( | | | | ( (/ / 
 \___)_|   \_||_| ||_/ \____)
                |_| 2018 by Jose Pino (@jofpin)
-----------------------------------------------
People tracker on internet for OSINT research |=-
-----------------------------------------------
| v2.0 |
--------

@-=[ UPDATES: RUNNING RECENT VERSION

LOCAL INFORMATION
-------------------
>-=[ Lure for the users: http://192.168.100.42:8080/whatsapp.com
>-=[ Your REST API path: http://192.168.100.42:8080/de49dcdca13d.js
>-=[ Control Panel Link: http://127.0.0.1:8080/ngrok
>-=[ Your Access key: 1da72fcc06cbf4e1f2f315a1

PUBLIC INFORMATION
-------------------
>-=[ Public lure: http://1f2de1a37532.ngrok.io/whatsapp.com
>-=[ Control Panel link: http://1f2de1a37532.ngrok.io/ngrok

[>] Start time: 2020-11-06 - 19:31:58 [?] Do not forget to close Trape, after use. Press Control C

[¡] Waiting for the users to fall...

[2020-11-06 19:32:21,950] ERROR in app: Exception on /whatsapp.com [GET] Traceback (most recent call last): File "/home/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/home/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/home/whatsapp/.local/lib/python2.7/site-packages/flask_cors/extension.py", line 165, in wrapped_function return cors_after_request(app.make_response(f(args, kwargs))) File "/home/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "/home/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/home/whatsapp/.local/lib/python2.7/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functions[rule.endpoint](req.view_args) File "/home/whatsapp/trape/core/user.py", line 69, in homeVictim html = assignScripts(victim_inject_code(opener.open(trape.url_to_clone).read(), 'payload', trape.url_to_clone, trape.gmaps, trape.ipinfo)) File "/home/whatsapp/trape/core/dependence/urllib2.py", line 406, in open response = meth(req, response) File "/home/whatsapp/trape/core/dependence/urllib2.py", line 519, in http_response 'http', request, response, code, msg, hdrs) File "/home/whatsapp/trape/core/dependence/urllib2.py", line 438, in error result = self._call_chain(args) File "/home/whatsapp/trape/core/dependence/urllib2.py", line 378, in _call_chain result = func(args) File "/home/whatsapp/trape/core/dependence/urllib2.py", line 625, in http_error_302 return self.parent.open(new, timeout=req.timeout) File "/home/whatsapp/trape/core/dependence/urllib2.py", line 406, in open response = meth(req, response) File "/home/whatsapp/trape/core/dependence/urllib2.py", line 519, in http_response 'http', request, response, code, msg, hdrs) File "/home/whatsapp/trape/core/dependence/urllib2.py", line 444, in error return self._call_chain(args) File "/home/whatsapp/trape/core/dependence/urllib2.py", line 378, in _call_chain result = func(*args) File "/home/whatsapp/trape/core/dependence/urllib2.py", line 527, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 400: Bad Request