social-engineer-toolkit icon indicating copy to clipboard operation
social-engineer-toolkit copied to clipboard

No such file or directory: 'src/webattack/tabnabbing/source.js'

Open hhhh123454213 opened this issue 1 year ago • 7 comments

Why does site clone cause this issue? please help me

  1. Java Applet Attack Method 2) Metasploit Browser Exploit Method 3) Credential Harvester Attack Method 4) Tabnabbing Attack Method 5) Web Jacking Attack Method 6) Multi-Attack Web Method 7) HTA Attack Method

  2. Return to Main Menu

set:webattack>5

The first method will allow SET to import a list of pre-defined web applications that it can utilize within the attack.

The second method will completely clone a website of your choosing and allow you to utilize the attack vectors within the completely same web application you were attempting to clone.

The third method allows you to import your own website, note that you should only have an index.html when using the import website functionality.

  1. Web Templates

  2. Site Cloner

  3. Custom Import

  4. Return to Webattack Menu

set:webattack>2


-- * IMPORTANT * READ THIS BEFORE ENTERING IN THE IP ADDRESS * IMPORTANT * ---

The way that this works is by cloning a site and looking for form fields to rewrite. If the POST fields are not usual methods for posting forms this could fail. If it does, you can always save the HTML, rewrite the forms to be standard forms and use the "IMPORT" feature. Additionally, really important:

If you are using an EXTERNAL IP ADDRESS, you need to place the EXTERNAL IP address below, not your NAT address. Additionally, if you don't know basic networking concepts, and you have a private IP address, you will need to do port forwarding to your NAT IP address from your external IP address. A browser doesn’t know how to communicate with a private IP address, so if you don't specify an external IP address if you are using this from an external perspective, it will not work. This isn't a SET issue this is how networking works.

set:webattack> IP address for the POST back in Harvester/Tabnabbing [192.168.244.146]: [-] SET supports both HTTP and HTTPS [-] Example: http://www.thisisafakesite.com set:webattack> Enter the url to clone: https://www.google.com [] Cloning the website: https://www.google.com
[
] This could take a little bit...

[!] Something went wrong, printing the error: [Errno 2] No such file or directory: 'src/webattack/tabnabbing/source.js'

hhhh123454213 avatar Jun 05 '24 07:06 hhhh123454213

The error is solved as follows: sudo curl https://raw.githubusercontent.com/trustedsec/social-engineer-toolkit/5e057388e5b7ea521d4658f3e22c874d52bb4f43/src/webattack/tabnabbing/source.js -o /usr/share/set/src/webattack/tabnabbing/source.js

sebastianabello avatar Sep 22 '24 15:09 sebastianabello

This Error can be solved if you run this command

sudo curl https://raw.githubusercontent.com/trustedsec/social-engineer-toolkit/5e057388e5b7ea521d4658f3e22c874d52bb4f43/src/webattack/tabnabbing/source.js -o /usr/share/set/src/webattack/tabnabbing/source.js

Credit @sebastianabello

Aser-Sec avatar Oct 22 '24 16:10 Aser-Sec

Ran the curl command and it's still not running with clone or import. tried recloning/reinstalling and still no luck. source.js is there and has the proper content.

mothballs-x avatar Nov 01 '24 09:11 mothballs-x

Ran the curl command and it's still not running with clone or import. tried recloning/reinstalling and still no luck. source.js is there and has the proper content.

Same problem here. Did you manage to solve it?

vscandeira avatar Nov 20 '24 15:11 vscandeira

sudo wget https://raw.githubusercontent.com/trustedsec/social-engineer-toolkit/5e057388e5b7ea521d4658f3e22c874d52bb4f43/src/webattack/tabnabbing/source.js -O /usr/share/set/src/webattack/tabnabbing/source.js报错 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 8 ms: Could not connect to server

yuyandlxia avatar Mar 09 '25 21:03 yuyandlxia

so s😞d

Extix770 avatar May 01 '25 14:05 Extix770

sudo wget https://raw.githubusercontent.com/trustedsec/social-engineer-toolkit/5e057388e5b7ea521d4658f3e22c874d52bb4f43/src/webattack/tabnabbing/source.js -O /usr/share/set/src/webattack/tabnabbing/source.js报错 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 8 ms: Could not connect to server

How about giving this command a try? It worked for me. sudo curl https://github.com/trustedsec/social-engineer-toolkit/blame/patch-1/src/webattack/tabnabbing/source.js -o /usr/share/set/src/webattack/tabnabbing/source.js

PheeeNiiix avatar Nov 23 '25 10:11 PheeeNiiix