philomathic-guy / Malicious-Web-Content-Detection-Using-Machine-Learning

Chrome extension for detecting phishing web sites
https://philomathic-guy.github.io/Malicious-Web-Content-Detection-Using-Machine-Learning/
MIT License
236 stars 76 forks source link

issues in the chrome extension #21

Closed bhavya998 closed 5 years ago

bhavya998 commented 5 years ago

Have you read Troubleshooting.md? If No, please do so before filing an issue. Yes

Have you tried Googling about it? Yes

Which python version are you using to run the project? In the terminal, type which <python-path-you-have-in-clientServer.php> and enter the output here

$decision=exec("C:/Python27 test.py $site 2>&1 ");

Python version - python 2.7.13

Describe the question error 1 "Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience" is the error shown in the chrome extension settings

er1

er2

the below mentioned is the line from the extension/popup.js which is at number 14 xhr.open("POST","http://localhost/Malicious-Web-Content-Detection-Using-Machine-Learning/clientServer.php",false);

error 2 in the extension itself below safe or not it shows error as follows <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Object not found!</title> <link rev="made" href="mailto:postmaster@localhost" /> <style type="text/css"><!--/*--><![CDATA[/*><!--*/ body { color: #000000; background-color: #FFFFFF; } a:link { color: #0000CC; } p, address {margin-left: 3em;} span {font-size: smaller;} /*]]>*/--></style> </head> <body> <h1>Object not found!</h1> <p> The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again. </p> <p> If you think this is a server error, please contact the <a href="mailto:postmaster@localhost">webmaster</a>. </p> <h2>Error 404</h2> <address> <a href="/">localhost</a><br /> <span>Apache/2.4.34 (Win32) OpenSSL/1.0.2o PHP/5.6.38</span> </address> </body> </html> er3

er4

Additional context Thank you for the amazing work sir ! please help me to solve this problem.

philomathic-guy commented 5 years ago

Hi Bhavya, Did you try looking for this issue in the previously filed issues? Did you try doing a web search on the same? I would really appreciate if you would post your answers about the above searches.

bhavya998 commented 5 years ago

hello sir!

The thread you posted in previous fields lead me to the thread of stackoverflow which got me to make changes with the async : true from false !

xhr.open("POST","http://localhost/Malicious-Web-Content-Detection-Using-Machine-Learning/clientServer.php",false); i changed the above coed to : xhr.open("POST","http://localhost/Malicious-Web-Content-Detection-Using-Machine-Learning/clientServer.php",true);

but now the issue is,

er1

that safe or not clickable button is just giving the dialog box / it is not taking the url input ,it just clicks the button and same dialog box appears again and again after clicking it ! i am running it on 2.7.13 python and also made the appropriate changes in the path !

er2

er3

it dosen't show any detailed error in the dialog box ,so i am not able to figure out what's wrong with that !

THANK YOU SO MUCH FOR YOUR REPLY SIR !

bhavya998 commented 5 years ago

@philomathic-guy please sir if u can give advice to solve the above issues it would be great ! thankyou