Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/potato-industries/fsrs

portable f# reverse shell
https://github.com/potato-industries/fsrs

fsharp reverse-shell

Last synced: 27 days ago
JSON representation

portable f# reverse shell

Awesome Lists containing this project

README

        

# fsrs

portable f# reverse shell (self-contained executable)

**Build**

```
root@kali:/opt/fsrs# apt-get install fsharp
Reading package lists... Done
Building dependency tree
Reading state information... Done
fsharp is already the newest version (4.5-0xamarin9+ubuntu1804b1).
0 upgraded, 0 newly installed, 0 to remove and 156 not upgraded.
```
Ubuntu 18.04 (works fine with kali 2019.4)
- https://www.mono-project.com/download/stable/#download-lin

**Usage**

```
root@kali:/opt/fsrs# sn -k fsrs.snk
Mono StrongName - version 5.18.0.240
StrongName utility for signing assemblies
Copyright 2002, 2003 Motus Technologies. Copyright 2004-2008 Novell. BSD licensed.

A new 1024 bits strong name keypair has been generated in file 'fsrs.snk'.

root@kali:/opt/fsrs# fsharpc --target:winexe --keyfile:fsrs.snk --standalone fsrs.fsx
Microsoft (R) F# Compiler version 10.2.3 for F# 4.5
Copyright (c) Microsoft Corporation. All Rights Reserved.

root@kali:/opt/fsrs# ls -lha
total 1.6M
drwxr-xr-x 2 root root 4.0K Nov 27 04:54 .
drwxr-xr-x 29 root root 4.0K Nov 27 02:56 ..
-rwxr-xr-x 1 root root 1.6M Nov 27 04:54 fsrs.exe
-rw-r--r-- 1 root root 1.5K Nov 27 04:54 fsrs.fsx
-rw------- 1 root root 596 Nov 27 04:52 fsrs.snk
```

- Edit listener IP/Domain, Port values in fsrs.fsx.
- Edit target binary for reverse shell in fsrs.fsx.
- Generate strong name key fsrs.snk
- Compile fsrs.fsx to fsrs.exe (flags: standalone, keyfile, target platform)
- Drop and execute fsrs.exe on host for reverse shell.

**AV**

Not bad out of the box, source code will need obfuscation for further bypass.

Screenshot 2019-11-27 at 04 57 39

Enjoy~