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
module 'cgi' has no attribute 'escape' #721
Comments
I'm on Kali 2020.2. |
I have the same problem |
you need to add "import html" under "import cgi" and then change "cgi.escape" to "html.escape" |
That fixed it. Appreciate the help. |
you need to do that in /usr/.............../harvester.py |
Yes it worked. |
This didnt work for me |
But i dont have webattack folder on user/src
…On Sat, May 16, 2020 at 8:35 PM neorampage ***@***.***> wrote:
[image: image]
<https://user-images.githubusercontent.com/62866594/82132976-1296c680-97b4-11ea-908a-e44fd8b17bf8.jpg>
[image: image]
<https://user-images.githubusercontent.com/62866594/82132981-1de9f200-97b4-11ea-8a48-f131c513fabc.jpg>
Even if i changes those things it aint working
oh! i see the problem, the correct file path is
/usr/share/......./harvester.py but you edited in /home/......./harvester.py
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO7UJITBJIXSLD76WPTXGPLRR4WMRANCNFSM4MKNB56A>
.
|
ls /usr/share/setoolkit/ ????? |
Oh i see i got it thankyou. I will try it
On Sat, May 16, 2020 at 8:38 PM Rinxhen Pasang <rinxhen.pasang10@gmail.com>
wrote:
… But i dont have webattack folder on user/src
On Sat, May 16, 2020 at 8:35 PM neorampage ***@***.***>
wrote:
> [image: image]
> <https://user-images.githubusercontent.com/62866594/82132976-1296c680-97b4-11ea-908a-e44fd8b17bf8.jpg>
> [image: image]
> <https://user-images.githubusercontent.com/62866594/82132981-1de9f200-97b4-11ea-8a48-f131c513fabc.jpg>
> Even if i changes those things it aint working
>
> oh! i see the problem, the correct file path is
> /usr/share/......./harvester.py but you edited in /home/......./harvester.py
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#721 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AO7UJITBJIXSLD76WPTXGPLRR4WMRANCNFSM4MKNB56A>
> .
>
|
Sorry to bother you again . I got new error.
…On Sat, May 16, 2020 at 8:41 PM neorampage ***@***.***> wrote:
But i dont have webattack folder on user/src
… <#m_-3078964578600670655_>
On Sat, May 16, 2020 at 8:35 PM neorampage *@*.***> wrote: [image: image]
https://user-images.githubusercontent.com/62866594/82132976-1296c680-97b4-11ea-908a-e44fd8b17bf8.jpg
[image: image]
https://user-images.githubusercontent.com/62866594/82132981-1de9f200-97b4-11ea-8a48-f131c513fabc.jpg
Even if i changes those things it aint working oh! i see the problem, the
correct file path is /usr/share/......./harvester.py but you edited in
/home/......./harvester.py — You are receiving this because you commented.
Reply to this email directly, view it on GitHub <#721 (comment)
<#721 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO7UJITBJIXSLD76WPTXGPLRR4WMRANCNFSM4MKNB56A
.
ls /usr/share/setoolkit/ ?????
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO7UJIRO5QLWJF3BJO5AGF3RR4XDJANCNFSM4MKNB56A>
.
|
show it |
I got local variable 'html' referenced before assignment after change my harvester.py. |
You need to add
from html import escape aa html_escape
And change cgi.escape to html_escape
…On Fri, May 22, 2020 at 12:00 AM chaoswlz ***@***.***> wrote:
I got local variable 'html' referenced before assignment after change my
harvester.py.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO7UJIU4BRWZYLFKCURN363RSX2GVANCNFSM4MKNB56A>
.
|
that works |
Does that show the password too?
…On Fri, May 22, 2020 at 12:28 AM chaoswlz ***@***.***> wrote:
that works
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO7UJIQIQXTCITVEOQWSVZ3RSX5PTANCNFSM4MKNB56A>
.
|
Thank, fix worked. |
on Vm Machine I am Using Kali Linux. Problem with the same attribution error. Module CGI. Please i need to Fix with Full details. Anyone Kali linux users available? |
Same problem , kali 2020 , virtual machine , I’m beginner so I have no idea where you actually edit the code . |
[*] WE GOT A HIT! Printing the output:
|
how to fix it |
Its because this file can only be accessed by root user. Give it access
using chmod
…On Tue, Jun 16, 2020 at 8:15 PM Nak-gt ***@***.***> wrote:
from html import escape aa html_escape
And change cgi.escape to html_escape It use it but when i try to save it.
it shows this
[image: Screenshot 2020-06-17 06:12:40]
<https://user-images.githubusercontent.com/67030649/84840616-e47dfe00-b061-11ea-90a7-8a817632c330.png>
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#721 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AO7UJIXQTMFH44KXR6JMYE3RXADJ7ANCNFSM4MKNB56A>
.
|
Hi..I am a new learner. I am also getting the same attribute error. Can anyone please guide me step by step on how can i reslove this issue? |
It worked, thanks! |
how to edit harvester.py file |
how to edit harvester.py file plz tell me step by step |
This worked for me, but it doesn't show me the password, what could it be? |
Screanshot? |
sorry if it seems too heavy to read all this, but this is the text that I find when doing the test ` 10.0.2.15 - - [13/Jul/2020 14:49:46] "GET / HTTP/1.1" 200 - 1594673391367 [{"user":"0","webSessionId":"6a4o5w:uuxyrl:lxb4sc","app_id":"256281040558","posts":[["logger:LoginEventsLoggerConfig",{"event":"browser_autocomplete","prefill_source":"browser_dropdown","prefill_type":"contact_point"},1594673391364,0,99]],"trigger":"logger:LoginEventsLoggerConfig"}] [*] WE GOT A HIT! Printing the output: 1594673391554 [{"app_id":"256281040558","posts":"yhzwZltbImdrMl9leHBvc3VyZSIseyJpZGVudGlmaWVyIjoiMTA3MzUwMCIsImhhc2giOiJBVDdIdTVUWVNSdF9Kd3pXIn0sMTU5NDY3MzM4ODk0MCwwLDUwXSxbInJlcXVpcmVfY29uZF8RYBxfbG9nZ2luZ0JoAPBWQWEzWVczZ1o5Q3NwWnF2R1pSTHNUUXU5NUNBWHZXUm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2UypwB4dXJpIjoiaHR0cHM6Ly93d3cuZmFjZWJvb2suY29tL1kqLisBHDUxMSwwLDI1RfRMd2ViX2RldmljZV9wZXJmX2luZm9B/yExoGNwdV9jb3JlcyI6MSwiZ3B1X3ZlbmRvciI6IlZNd2FyZSwgSW5jLiIsBRwQcmVuZGUJs3xsbHZtcGlwZSAoTExWTSAxMC4wLjAsIDI1NiBiaXRzKS6PABwxMDgyLDAsOYaOCxQxNDI3MzA2xAcwRWdteERZemZnLTJGNzJXAAQzNQHmisAGEDcwODI1Ng4DMGZXd19JUFFkSW5oSG8yVgAINTE2InEIOGNhdGVnb3JpemVkX29kcyEybDI5NjYiOnsibXMudGltZV9zcGVudC5xYS53d3cBGB0VIQkoLmpzX2luaXRpYWwBRhgiOlsxXX19PawoMTUxNywwLDcyXV0=","user":"0","webSessionId":"6a4o5w:uuxyrl:lxb4sc","trigger":"categorized_ods","send_method":"ajax","compression":"snappy_base64","snappy_ms":33},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_received":[34]}}},1594673391520,0,51]],"user":"0","app_id":"256281040558","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_sent":[33]}}},1594673391520,0,47]],"user":"0","app_id":"256281040558","compression":""}] [*] WE GOT A HIT! Printing the output: 1594673391737 [{"user":"0","webSessionId":"6a4o5w:uuxyrl:lxb4sc","app_id":"256281040558","posts":[["logger:LoginEventsLoggerConfig",{"event":"browser_autocomplete","prefill_source":"browser_onload","prefill_type":"contact_point"},1594673391735,0,97]],"trigger":"logger:LoginEventsLoggerConfig"}] [*] WE GOT A HIT! Printing the output: 1594673393078 [{"app_id":"256281040558","posts":[["click_ref_logger",["2IdK",1594671900879,"act",1594671900875,2,"login","click","click","-","r","/",{"ft":{"click_type":"left"},"gt":{}},684,367,0,0,"tng441","/login.php"],1594671900878,0,151]],"user":"0","webSessionId":"2toe9a:uwakqs:tng441","trigger":"click_ref_logger","send_method":"ajax","compression":""},{"app_id":"256281040558","posts":[["click_ref_logger",["2IdK",1594673392992,"act",1594673392988,1,"email","click","click","-","r","/",{"ft":{"click_type":"left"},"gt":{}},564,268,0,0,"lxb4sc","/login.php"],1594673392991,0,151]],"user":"0","webSessionId":"6a4o5w:uuxyrl:lxb4sc","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_received":[4]}}},1594673393063,0,50]],"user":"0","app_id":"256281040558","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_sent":[6]}}},1594673393068,0,46]],"user":"0","app_id":"256281040558","compression":""}] [*] WE GOT A HIT! Printing the output: 1594673398500 [{"app_id":"256281040558","posts":[["time_spent_bit_array",{"tos_id":"lxb4sc","start_time":1594673390,"tos_array":[239,0],"tos_len":9,"tos_seq":0,"tos_cum":7,"sid_raw":"6a4o5w:uuxyrl:lxb4sc"},1594673398477,0,132]],"user":"0","webSessionId":"6a4o5w:uuxyrl:lxb4sc","trigger":"time_spent_bit_array","send_method":"ajax","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_received":[3]}}},1594673398480,0,50]],"user":"0","app_id":"256281040558","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_sent":[3]}}},1594673398481,0,46]],"user":"0","app_id":"256281040558","compression":""}] [*] WE GOT A HIT! Printing the output: 1594673403614 [{"app_id":"256281040558","posts":[["click_ref_logger",["2IdK",1594673403576,"act",1594673403572,2,"pass","click","click","-","r","/",{"ft":{"click_type":"left"},"gt":{}},621,317,0,0,"lxb4sc","/login.php"],1594673403574,0,150]],"user":"0","webSessionId":"6a4o5w:uuxyrl:lxb4sc","trigger":"click_ref_logger","send_method":"ajax","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_received":[3]}}},1594673403608,0,50]],"user":"0","app_id":"256281040558","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_sent":[3]}}},1594673403609,0,46]],"user":"0","app_id":"256281040558","compression":""}] 1594673403614 [{"app_id":"256281040558","posts":[["click_ref_logger",["2IdK",1594673403576,"act",1594673403572,2,"pass","click","click","-","r","/",{"ft":{"click_type":"left"},"gt":{}},621,317,0,0,"lxb4sc","/login.php"],1594673403574,0,150]],"user":"0","webSessionId":"6a4o5w:uuxyrl:lxb4sc","trigger":"click_ref_logger","send_method":"ajax","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_received":[3]}}},1594673403608,0,50]],"user":"0","app_id":"256281040558","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_sent":[3]}}},1594673403609,0,46]],"user":"0","app_id":"256281040558","compression":""}] [] WE GOT A HIT! Printing the output: [] WE GOT A HIT! Printing the output: [*] WE GOT A HIT! Printing the output: 1594673416668 [{"app_id":"256281040558","posts":[["click_ref_logger",["2IdK",1594673415953,"act",1594673415941,3,"login","click","click","-","r","/",{"ft":{"click_type":"left"},"gt":{}},646,361,0,0,"lxb4sc","/login.php"],1594673415953,0,151]],"user":"0","webSessionId":"6a4o5w:uuxyrl:lxb4sc","trigger":"click_ref_logger","send_method":"ajax","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_received":[3]}}},1594673416630,0,50]],"user":"0","app_id":"256281040558","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_sent":[3]}}},1594673416630,0,46]],"user":"0","app_id":"256281040558","compression":""}] [*] WE GOT A HIT! Printing the output: 1594673416863 [{"app_id":"256281040558","posts":"9QSQW1siY2F0ZWdvcml6ZWRfb2RzIix7IjI5NzkiOnsiYmFuemFpIgEK4Gx1ZV90b3RhbF9tZXNzYWdlc19yZWNlaXZlZCI6WzQ5XX19fSwxNTk0NjczNDE2Nzg2LDAsNTddLOphACBzZW50IjpbNTBCXQAUNywwLDUzAV1MdGltZV9zcGVudF9iaXRfYXJyYXkBw1x0b3NfaWQiOiJseGI0c2MiLCJzdGFydF8BMAQiOg2pDDM5OSwFKgk3KDpbMTA4MTgxLDBdCRcYbGVuIjoxOAkNFHNlcSI6MQkMgGN1bSI6MTYsInNpZF9yYXciOiI2YTRvNXc6dXV4eXJsOg12BH0sDWosNDE2Nzk5LDAsMTM3AbdEc2NyaXB0X3BhdGhfY2hhbmdlAbUUc291cmNlBRYwIjoiL2xvZ2luLnBocAG+CRsIdG9rAZQ4ImFkOTc2NDIwIiwiZGVzCUkUIjpudWxsDRENKQkSNGNhdXNlIjoidW5sb2FkAU52twAALBGKGGVmX3BhZ2URWg2FdHVyaSI6Imh0dHBzOi8vd3d3LmZhY2Vib29rLmNvbR23Lv8AKDgwNCwwLDIxMV1d","user":"0","webSessionId":"6a4o5w:uuxyrl:lxb4sc","send_method":"beacon","compression":"snappy_base64","snappy_ms":21},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_received":[4]}}},1594673416806,0,50]],"user":"0","app_id":"256281040558","compression":""},{"webSessionId":"6a4o5w:uuxyrl:lxb4sc","posts":[["categorized_ods",{"2979":{"banzai":{"blue_messages_sent":[6]}}},1594673416807,0,46]],"user":"0","app_id":"256281040558","compression":""}] |
|
I am starting my learning with setoolkit, cloning www.facebook.com |
the password is encrypt and try to not use social networks, start with more simples websites or usea the setoolkit templates |
oh seriously ... I had no idea about that, I was guided by tutorials. Thank you very much for your help |
I have the same issue.but I was doing this fine before I updating my Kali Linux.On Kali 2.0 SANA version it worked much fine...but in latest kali 2020.2b is the one i have this issue...anyone can help? |
That worked for me. Thanks. |
I had the same error. I noticed I was using Python 3.7, and the project required Python 3.6. The solution was to downgrade to Python 3.6. |
import cgi
from html import escape
cgi.escape = escape did the thing for me |
bro firstly u hv to loggin as a super user (root user) then u need to learn chmod commands to give permissions to the files .., |
Thanks so much bro, you did save my life. It worked for me. Just had to do this: |
Thanks Man its worked... :-) |
Expected Behaviour
Print output
Put here what the expected behaviour should be when reporting an issue
Actual Behaviour
Exception happened during processing of request from ('0.0.0.0', 63279)
Traceback (most recent call last):
File "/usr/lib/python3.8/socketserver.py", line 650, in process_request_thread
self.finish_request(request, client_address)
File "/usr/lib/python3.8/socketserver.py", line 360, in finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python3.8/socketserver.py", line 720, in init
self.handle()
File "/usr/lib/python3.8/http/server.py", line 427, in handle
self.handle_one_request()
File "/usr/lib/python3.8/http/server.py", line 415, in handle_one_request
method()
File "/usr/share/set/src/webattack/harvester/harvester.py", line 334, in do_POST
filewrite.write(cgi.escape("PARAM: " + line + "\n"))
AttributeError: module 'cgi' has no attribute 'escape'
Set Version
8.0.3
The text was updated successfully, but these errors were encountered: