📑
Security Notes
  • Readme
  • Resources
    • Useful sites
    • Metasploit
      • Searchsploit
      • Msfvenom
      • Meterpreter
    • Shells
    • Linux
      • Cron
      • Connection
      • Compilers
    • Windows
      • Kernel exploits table
    • Bruteforce
      • Checklist
      • John the Ripper
      • Hashcat
    • BOF
      • Assembly
    • Gaining access checklist
  • Cloud - AWS
    • Enumeration
    • References
    • Bucket S3
      • Public Bucket
      • AMI Files
      • File upload to RCE
    • EC2
      • cloud-init Exploits
      • SSRF To AWS Role compromise
      • Unencrypted EBS
    • IAM
      • Account Disclosure by resource policy
    • Lambda Function
      • Code Injection
      • Attacking APIs
    • VPC
      • Expose Resources
  • Networking
    • Nmap
      • Scan types
    • TCPDump
    • Port forwarding
    • Ports
      • 21 - FTP
      • 22 - SSH
      • 25 465 587 - SMTP
      • 53 - DNS
      • 110 995 - POP3
      • 111 - NFS
      • 113 - Ident
      • 123 - NTP
      • 135 137 139 - RPC
      • 143 993 - IMAP
      • 161 - SNMP
      • 389 - LDAP
      • 139 445 - SMB
      • 873 - Rsync
      • 6379 - Redis
      • 6667 - IRC
  • Linux PrivEsc
    • Checklist
    • Enumeration
      • Important files
      • Memory Dump
    • Privileges Exploitation
    • Wildcard Exploits
    • Sudo Exploits
    • Docker Container
    • Docker Groups
    • Common Exploits
  • Windows PrivEsc
    • Checklist
    • Enumeration
      • Important Files
    • Antivirus evasion tools
    • Unquoted paths
    • Always install elevated
    • Vulnerable services
    • Client side
    • Exploitable privileges
      • Juicy Potato
    • UAC bypass
    • Common Exploits
  • Active Directory
    • Introduction
    • Checklist
    • Enumeration
    • Enable RDP
    • Kerberos
    • Rubeus
    • Credentials harvesting
      • Domain Controller specific
    • Connection
    • Pass The Hash
    • Kerberoast
    • ASREProast
    • Tickets
  • Web Attacks
    • Checklist
    • Enumeration
      • URL bruteforcing
    • APIs and Fields
    • Authentication
    • Filter Evasion
      • Fuzzying and encoding
    • File Vulnerabilities
      • LFI List
      • PHP shells
    • RCE
    • Code Injection
    • Dependency Injection
    • Joomla
    • Wordpress
    • WebDAV
    • HTTP
    • XSS
      • DOM Based
      • Reflected
      • Filter Evasion
    • SSI
    • SSTI
    • RCE
    • CSRF
    • SQL injection
      • sqlmap
      • PostgreSQL
      • Oracle
      • MSSQL
      • MySQL
      • Login
    • XPath injection
    • XXE
    • CORS
  • MOBILE PENTESTING
    • Static Code Analysis
    • Dynamic Code Analysis
    • Network Traffic Analysis
Powered by GitBook
On this page
  • Binaries
  • Debugger
  • EXE package maker
  • .PY to EXE converter
  • GCC
  • Cross compile
  • To windows
  • To *nix
  1. Resources
  2. Linux

Compilers

Binaries

Debugger

edb

EXE package maker

upx -9 <file>.exe

.PY to EXE converter

pip install pyinstaller
pyinstaller --onefile -w 'filename.py'

GCC

gcc <file>.c -o <filename>.o
gcc <file> -mtune=<i386,i486,i586,i686,generic,native>
gcc <file> -m32
gcc <file> -m64

Make a shared library

gcc -c -Wall -Werror -fpic <file>.c
gcc -shared -o <lib shared>.so <file>.o

Compile for older kernels

 gcc -Wall -Wl,--hash-style=both -o <file>.o <file>.c

Cross compile

To windows

i686-w64-mingw32-gcc <c file>.c -o <filename>.exe -lws2_32 -<lib arg n> 
x86_64-w64-mingw32-gcc <c file>.c -o <filename>.exe -lws2_32 -<lib arg n> 

Setup

sudo apt-get install mingw-w64 git-core wget quilt

To *nix

gcc <file> -m32 -mtune=<i386,i486,i586,i686,generic,native> -s --static
gcc -Wall -Wl,--hash-style=both -o <file>.o <file>.c -s --static
gcc <file> -m32 -mtune=<i386,i486,i586,i686,generic,native> -<package>

Setup

sudo dpkg --add-architecture i386
sudo dpkg --add-architecture i686
apt update
apt install <package>-dev:<arch>
PreviousConnectionNextWindows

Last updated 1 year ago