• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    Go
  • License
    The Unlicense
  • Created over 2 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐Ÿ–ฅ๏ธ๐Ÿ“– Embed reverse shell in Notion pages

notionterm

Embed reverse shell in Notion pages.
Hack while taking notes


demo


FOR โž•:

  • Hiding attacker IP in reverse shell (No direct interaction between attacker and target machine. Notion is used as a proxy hosting the reverse shell)
  • Demo/Quick proof insertion within report
  • High available and shareable reverse shell (desktop, browser, mobile)
  • Encrypted and authenticated remote shell

NOT FOR โž–:

  • Long and interactive shell session (see tacos for that)

Why? ๐Ÿค”

The focus was on making something fun while still being usable, but that's not meant to be THE solution for reverse shell in the pentester's arsenal

How? ๐Ÿคทโ€โ™‚๏ธ

Just use notion as usual and launch notionterm on target.

Requirements ๐Ÿ–Š๏ธ

  • Notion software and API key
  • Allowed HTTP communication from the target to the notion domain
  • Prior RCE on target

roughly inspired by the great idea of OffensiveNotion and notionion!

TL;DR

Learn command and flags is too boring: Use wrap-notionterm.sh

Quickstart

๐Ÿ—๏ธ Set-up

  1. Create a page and give to the integration API key the permissions to have page write access
  2. Build notionterm and transfer it on target machine (see Build)

๐Ÿ‘Ÿ Run

There are 3 main ways to run notionterm:

"normal" mode
Get terminal, stop/unstop it, etc...
notionterm [flags]
Start the shell with the button widget: turn ON, do you reverse shell stuff, turn OFF to pause, turn ON to resume etc...
"server" mode
Ease notionterm embedding in any page
notionterm --server [flags]
Start a shell session in any page by creating an embed block with URL containing the page id (CTRL+Lto get it): https://[TARGET_URL]/notionterm?url=[NOTION_PAGE_ID].
light mode
Only perform HTTP traffic from target โ†’ notion
notionterm light [flags]

Build

As notionterm is aimed to be run on target machine it must be built to fit with it.

Thus set env var to fit with the target requirement:

GOOS=[windows/linux/darwin]

Simple build

git clone https://github.com/ariary/notionterm.git && cd notionterm
GOOS=$GOOS go build notionterm.go

You will need to set API key and notion page URL using either env var (NOTION_TOKEN & NOTION_PAGE_URL) or flags (--token & --page-url)

"All-inclusive" build

Embed directly the notion integration API token and notion page url in the binary. โš ๏ธ everybody with access to the binary can retrieved the token. For security reason don't share it and remove it after use.

Set according env var:

export NOTION_PAGE_URL=[NOTION_PAGE_URL]
export NOTION_TOKEN=[INTEGRATION_NOTION_TOKEN]

And build it:

git clone https://github.com/ariary/notionterm.git && cd notionterm
./static-build.sh $NOTION_PAGE_URL $NOTION_TOKEN $GOOS

More Repositories

1

fileless-xec

Stealth dropper executing remote binaries without dropping them on disk .(HTTP3 support, ICMP support, invisible tracks, cross-platform,...)
Go
184
star
2

QueenSono

Golang binary for data exfiltration with ICMP protocol (+ ICMP bindshell, http over ICMP tunneling, ...)
Go
143
star
3

volana

๐ŸŒ’ Shell command obfuscation to avoid detection systems
Go
120
star
4

cfuzz

Command line fuzzer and bruteforcer ๐ŸŒช wfuzz for command
Go
85
star
5

TrojanSourceFinder

๐Ÿ”Ž Help find Trojan Source vulnerability in code ๐Ÿ‘€ . Useful for code review in project with multiple collaborators (CI/CD)
Go
45
star
6

HTTPCustomHouse

HTTP request smuggling attack helper/CLI tools to manipulate HTTP packets
Go
33
star
7

tacos

๐ŸŒฎ INTERACTIVE reverse shell everywhere! (Particularly digestible with socat multi-handler listener)
Shell
29
star
8

Notionion

Notion as an HTTP proxy
Go
27
star
9

DomXssFinder

Find sources and sinks in js code that could lead to DOM XSS ๐Ÿ”Ž๐Ÿ’ง๐Ÿšฐ
Shell
21
star
10

gitar

๐Ÿ“ก Ease file sharing during pentest/CTF ๐ŸŽธ
Go
12
star
11

Readme-Like-Button

Style your README with a "like button" ๐Ÿ‘
10
star
12

SMTrackerP

๐ŸŽฃ Simple Mail Tracker Protocol ๐Ÿ“ฌ bring back into fashion the acknowledgement of receipt
Go
8
star
13

JSextractor

Fastly gather all JavaScript from url (CLi+TUI)
Go
8
star
14

Hack-weak-strcmp-code

A description of a basic hack over a C files using strcmp function
C
7
star
15

sexonthebash

Unprivileged and stealth shell input and output listeners. Differerent approach for keylogging with Shell/bash.
Go
6
star
16

bang

My pentest machine environment set up, tools, aliases and shortcuts
Shell
5
star
17

cssrf

Ease CSS exfiltration
Go
5
star
18

httpecho

Golang HTTP echo server (real raw request echoed)
Go
4
star
19

magnet

๐Ÿงฒ Hide data exfiltration in harmless looking executable
Go
4
star
20

wslight

Unix command translator on Windows cmd
Go
4
star
21

console.sh

Share terminal in your browser console
JavaScript
4
star
22

AravisFS

Encrypted filesystem ๐Ÿ” And a CLI to remotely and securely interact with (if you want to store encrypted private data on โ˜๏ธ)
Go
3
star
23

.pwnvscode

Obtain RCE by poisoning .vscode folder
Shell
3
star
24

shuid

Nim project for Persistence & Privesc using S(hadow)UIDs files ๐Ÿ‘ค
Nim
3
star
25

PoC-Website-Masquerading

PoC on how to impersonnate/masquerade a website locally ๐ŸŽญ
Shell
3
star
26

friendly-windows-malware

๐Ÿ’ป๐ŸŽจ Simple executables to prove remote code execution in a nice and harmless way in your demos
Go
2
star
27

sheesh

A ยซย better than an aliasย ยป generator (flag & completion) ๐Ÿช‚
Go
2
star
28

kube-podpreemption-DoS

๐ŸŒช๏ธ Evict pods and block pod deployment (DoS) on kubernetes
Python
2
star
29

quicli

๐Ÿช† Go library to quickly build CLI using a simple one-liner
Go
2
star
30

kraken_capital_gain

Get the capital gain of yourtrade history considering different parameter (timeframe, currency, etc)
Python
1
star
31

TheWordIsYours

Malicious Macro for the dummies ๐ŸŒ Choose a payload, inject it, sprinkle with stealthiness, wait with a cup of tea ๐Ÿซ–
VBA
1
star