Skip to content
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

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

Open
hhhh123454213 opened this issue Jun 5, 2024 · 3 comments
Open

Comments

@hhhh123454213
Copy link

hhhh123454213 commented Jun 5, 2024

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'

@sebastianabello
Copy link

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

@DeveloperAser
Copy link

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

@mothballs-x
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants