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: '/usr/local/share/setoolkit/src/payloads/set_payloads/pyinjector.binary' #1083

Open
Archerkong opened this issue Jun 27, 2024 · 1 comment

Comments

@Archerkong
Copy link

when i use the latest version setoolkit's "Java Applet Attack Method" ,in the end it has an error:
[!] Something went wrong, printing the error: [Errno 2] No such file or directory: '/usr/local/share/setoolkit/src/payloads/set_payloads/pyinjector.binary'

and i go to the code src dictory and not found the file name of pyinjector.binary,i want know how to resolve the problem,thanks

@Kresimir-vk
Copy link

Kresimir-vk commented Nov 8, 2024

I have exactly the same problem.

Select the payload you want to deliver via shellcode injection

  1. Windows Meterpreter Reverse TCP
  2. Windows Meterpreter (Reflective Injection), Reverse HTTPS Stager
  3. Windows Meterpreter (Reflective Injection) Reverse HTTP Stager
  4. Windows Meterpreter (ALL PORTS) Reverse TCP

set:payloads> Enter the number for the payload [meterpreter_reverse_https]: 1
[*] Prepping pyInjector for delivery..
Traceback (most recent call last):
File "/usr/share/set/./setoolkit", line 244, in
core.module_reload(src.core.set)
^^^
NameError: name 'src' is not defined

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/share/set/src/core/set.py", line 417, in
module_reload(src.core.payloadgen.create_payloads)
^^^^^^^^^^^^^^^^^^^
AttributeError: module 'src.core' has no attribute 'payloadgen'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/share/set/./setoolkit", line 246, in
import src.core.set
File "/usr/share/set/src/core/set.py", line 419, in
import src.core.payloadgen.create_payloads
File "/usr/share/set/src/core/payloadgen/create_payloads.py", line 507, in
fileopen = open("%s/src/payloads/set_payloads/pyinjector.binary" % (definepath), "rb").read()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/usr/share/set/src/payloads/set_payloads/pyinjector.binary'

I tried to solve the problem with the following instructions, from issue #889 and download :
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, but it didn't help.

lsb_release -rdc
Description: Kali GNU/Linux Rolling
Release: 2024.3
Codename: kali-rolling

Tested on Kali and tested on freshly installed Debian. Same result 👎

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

2 participants