Skip to content

Instantly share code, notes, and snippets.

@hack-tramp
hack-tramp / AVRAwMSVS.txt
Last active May 29, 2024 16:30
How to compile AVRA with MS Visual Studio 2019
How to compile AVRA https://github.com/Ro5bert/avra
with MS Visual Studio 2019
New Project > Console Application > C++
(create it empty without any files)
Import all .c and .h files from AVRA src folder
In file.c, you will need to change line
#include <unistd.h> into:
@hack-tramp
hack-tramp / perm2txt.py
Created October 7, 2020 12:31
convert octal permission number to a text string
#this function correctly deals with four digit octals , unlike most other scripts
#When the octal is 4 digits long, the first digit is a setuid, setguid or sticky flag.
#See here for more info: https://linuxize.com/post/chmod-command-in-linux/
#and here: https://en.wikipedia.org/wiki/File_system_permissions#Notation_of_traditional_Unix_permissions
#examples:
#print(perm_to_text('3777'))
#rwxrwsrwt
#print(perm_to_text('2775'))
#rwxrwsr-x