You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Instantly share code, notes, and snippets.
Hope is not a strategy
Alex Zolotarov
webgtx
Hope is not a strategy
all I have to do is settle on my ass in front of my computer screen and hit the keyboard until something cool happens
Sample ICACLS commands to set owner, grant full control, read-only, and read plus execute access
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
When connected with a reverse or bind shell you'll notice that no interactive commands will work and
hitting Ctrl+c will terminate your session.
To fix this, you'll need to attach it to a TTY (make it interactive). Here's how:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server=socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) # enable address reuseserver.bind((HOST, PORT))
server.listen(5)
print(f"RSHELL Server is running on {HOST}:{PORT}")
By calling setsockopt() on the socket object with the SO_REUSEADDR option,
you are telling the operating system to allow the reuse of the same address.
This should help you avoid the Address already in use error when restarting your server.
By default, the toolbox command works in toolbox container and podman does not.
However, if you want to use podman from within a toolbox container, you can use flatpak-spawn --host to run a command from outside the toolbox from within the toolbox.
If you alias podman to flatpak-spawn --host podman inside your container, then it’ll run your system’s podman command from within the container.
This is mainly useful if you have a terminal set up to launch your dev environment as a toolbox container and you want to run a command outside of your container sometimes.
(For what it’s worth, some commands already seem to mostly “just work” inside a container, like toolbox and rpm-ostree.)