# Echo Up

**URL:** <https://pentest.ws/tools/echo-up>

The Echo Up tool is useful for creating files on remote servers when you only have access to a terminal interface, either through a bash reverse shell or powershell remoting.

![Echo Up](https://1013683115-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FHecEAvxd6Z8cSug6DhWr%2Fuploads%2FQHvn9xc2ASmOe7HouE3d%2Fimage.png?alt=media\&token=899dcdfa-20c3-4785-80b1-aa351eb5c252)

On the left side of the screen you can manually enter file contents or use the Load File button to read in a local file. As you type, the right side of the screen will create a list of shell commands to build the file on the remote server by using a number of techniques.

## Base 64 Techniques

{% hint style="info" %}
The following examples will encode "Hello World" and generate a "helloWorld.txt" file.
{% endhint %}

### B64 bash

Linux - echos the payload to base64 and uses bash output redirection

```bash
echo -n 'SGVsbG8gV29ybGQ=' | base64 -d > helloWorld.txt
```

### B64 cmd

Windows - uses certutil and cmd variables to generate a file

```bash
del /Q helloWorld.txt
del /Q froqwcxj
echo|set /p="SGVsbG8gV29ybGQ=" >> froqwcxj
certutil -decode froqwcxj helloWorld.txt
del /Q froqwcxj
```

### B64 Powershell

Windows - powershell script using local variables and System.Convert

```powershell
del helloWorld.txt
$boizakxl = @()
$boizakxl += [System.Convert]::FromBase64String("SGVsbG8gV29ybGQ=")
[Environment]::CurrentDirectory = (Get-Location -PSProvider FileSystem).ProviderPath
[System.IO.File]::WriteAllBytes("helloWorld.txt", $boizakxl)
Remove-Variable boizakxl
```

## Quote Conversion Techniques

These examples parse the file contents converting single quotes to double quotes where needed. The file contents of the following examples is:

> This is a "test" of the application's Echo Up feature.

### Single Quoted

Wrap the file contents in single quotes and convert inner single quotes to a series of single quote, double quote, single quote, double quote, single quote.

```
echo 'This is a "test" of the application'"'"'s Echo Up feature.' > helloWorld.txt
```

### Double Quoted

Wrap the file contents in double quotes and convert inner double quotes&#x20;

```
echo "This is a "'"'"test"'"'" of the application's Echo Up feature." > helloWorld.txt
```

### No Quotes

Do not convert the file contents.

```
echo This is a "test" of the application's Echo Up feature. > helloWorld.txt
```

## Tier Availability

**Echo Up** is available on all tiers.
