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

Permission denied #38

Open
Azrael1980 opened this issue Aug 30, 2022 · 2 comments
Open

Permission denied #38

Azrael1980 opened this issue Aug 30, 2022 · 2 comments

Comments

@Azrael1980
Copy link

┌──(kali㉿kali)-[~/net-creds]
└─$ ./net-creds.py

Traceback (most recent call last):
File "./net-creds.py", line 38, in
logging.basicConfig(filename='credentials.txt',level=logging.INFO)
File "/usr/lib/python2.7/logging/init.py", line 1554, in basicConfig
hdlr = FileHandler(filename, mode)
File "/usr/lib/python2.7/logging/init.py", line 920, in init
StreamHandler.init(self, self._open())
File "/usr/lib/python2.7/logging/init.py", line 950, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/kali/net-creds/credentials.txt'

┌──(kali㉿kali)-[~/net-creds]
└─$ sudo python3 net-creds.py
[sudo] password for kali:
File "/home/kali/net-creds/net-creds.py", line 952
print print_str
^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

@behroozAlborzi
Copy link

Did you find a solution to the problem?

@jatin66
Copy link

jatin66 commented Oct 8, 2023 via email

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

3 participants