question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

no permissons and ```log```

See original GitHub issue

if you try to create file in root directory and you don’t have permissions, hsf dies

(hsf)> log on /file.txt
[i] HatSploit log: on
[-] An error occurred: [Errno 13] Permission denied: '/file.txt'!
Traceback (most recent call last):
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/base/console.py", line 87, in launch_menu
    self.execute.execute_command(commands, arguments)
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/base/execute.py", line 47, in execute_command
    if not self.execute_core_command(commands, arguments):
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/base/execute.py", line 90, in execute_core_command
    command.run(len(arguments), arguments)
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/lib/../commands/log.py", line 42, in run
    self.print_information("HatSploit log: on")
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/cli/badges.py", line 64, in print_information
    self.print_empty(self.I + message, start=start, end=end)
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/cli/badges.py", line 46, in print_empty
    self.io.print(message, start=start, end=end)
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/base/io.py", line 49, in print
    with open(use_log, 'a') as f:
PermissionError: [Errno 13] Permission denied: '/file.txt'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/thecakeisfalse/.local/bin/hsf", line 8, in <module>
    sys.exit(main())
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/hsf.py", line 169, in main
    hsf.launch(script=hsf.root_path + 'startup.hsf')
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/hsf.py", line 93, in launch
    self.console.script(script, do_shell)
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/base/console.py", line 179, in script
    self.launch_menu()
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/base/console.py", line 94, in launch_menu
    self.badges.print_error("An error occurred: " + str(e) + "!")
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/cli/badges.py", line 58, in print_error
    self.print_empty(self.E + message, start=start, end=end)
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/cli/badges.py", line 46, in print_empty
    self.io.print(message, start=start, end=end)
  File "/home/thecakeisfalse/.local/lib/python3.8/site-packages/hatsploit/core/base/io.py", line 49, in print
    with open(use_log, 'a') as f:
PermissionError: [Errno 13] Permission denied: '/file.txt'
bruh@bruh:~$ 

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
thecakeisfalsecommented, Sep 21, 2021

@enty8080 yes, it works correct, thanks

0reactions
enty8080commented, Sep 21, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why don't I have permission to read my log files?
Windows Backup is insufficient to my needs, as I have to back up different folders to different backup locations (not enough space on...
Read more >
Completing the Permissions Log | Online Resources
The Permissions Log is used to record the details of any third-party content that requires permission, that has license restrictions, or that depicts ......
Read more >
No permission and No logs - Okta Support
Hello, We have a user that is remote and cannot log in through Okta to any of our apps. When I go to...
Read more >
If you need permission to open an item on Mac - Apple Support
Click the pop-up menu next to your user name to see the permissions settings. If you're not logged in as an administrator, you...
Read more >
CloudWatch Logs permissions reference
Describes the Amazon CloudWatch Logs API operations and the corresponding actions you grant permissions to perform.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found