What is setoolkit?
Social-Engineer Toolkit (SET) was created &written by a founder of the TrustedSec. It is an open-source Python-driven tool aimed toward penetration testing around Social-Engineering. SET has been presented at large-scale conferences, including Blackhat, DerbyCon, Defcon, and ShmooCon. With over two million downloads, SET is the standard for social engineering penetration tests and is supported heavily within the security community.
Fix setoolkit error kali OS
[Errno 13] Permission denied: ‘/etc/setoolkit/.’
OS Kali Linux is fantastic, with lots of tools you may require. Once you fire up your Kali Linux OS, you feel similar you just entered the heaven of Penetration Testing. Though it may not be the most significant Penetration Testing Distribution for you, it is the best for the user.
So let’s begin, the error we will try to fix today is
File “./setoolkit”, line 24, in <module>
os.makedirs(“/etc/setoolkit/”)
File “/usr/lib/python2.7/os.py”, line 157, in makedirs
mkdir(name, mode)
OS error: [Errno 13] Permission denied: ‘/etc/setoolkit/’
I got this error when I tried to open the Social engineering toolkit located here:
Applications > Exploitation > Social engineering toolkit
There is nothing incorrect with Python. There is nothing incorrect with setoolkit.
The problem is with the user and the Permission, and you may be using an Administrator account, but it’s not the root! In case you still don’t have real root access when sudo works most of the time! To fix the error, we have to gain our root access again. To do that
go to the boot menu and select “recovery mode.”
use the passwd command to set the new credentials to the root account.
Type: passwd and hit Enter button
It will ask for a password type your password ( the password here may be toor )
It will ask for it again, so you know to type it again and hit Enter
restart Kali Linux when you log in to make sure you login with
User: root
Pass: toor or the password you choose
open Social engineering setoolkit, and it should work :)
but if you try to open the Social engineering toolkit from your username, you will get a message like this
Traceback (most recent call last):
File “./setoolkit”, line 101, in <module>
update_config()
File “/usr/share/set/src/core/update_config.py”, line 95, in update_config
new_config = file(“/etc/setoolkit/set_config.py”, “w”)
IOError: [Errno 13] Permission denied: ‘/etc/setoolkit/set_config.py’
To fix that
just login with username: root
If you want to make the method work over the internet, you will need to use your public IP instead of private. Search Google for what’s my IP to find your public IP. Then use it. You can use TinyURL or something to make the URL seem legitimate. Also, port forwarding might need to be allowed, as your router might block traffic on port 80. The firewall can also cause trouble.
Leave a comment to let us know if it works for you. And if say so, we can try to fix it for you.