Skip to content

Instantly share code, notes, and snippets.

View dumpofmemory's full-sized avatar
🎯
Focusing

Sam dumpofmemory

🎯
Focusing
View GitHub Profile
@dumpofmemory
dumpofmemory / rejetto-exploit.py
Last active June 17, 2021 09:11
rejetto file server exploit
#!/usr/bin/python
# Exploit Title: HttpFileServer 2.3.x Remote Command Execution
# Google Dork: intext:"httpfileserver 2.3"
# Date: 04-01-2016
# Remote: Yes
# Exploit Author: Avinash Kumar Thapa aka "-Acid"
# Vendor Homepage: http://rejetto.com/
# Software Link: http://sourceforge.net/projects/hfs/
# Version: 2.3.x
# Tested on: Windows Server 2008 , Windows 8, Windows 7
@dumpofmemory
dumpofmemory / Privilege Escalation.md
Created May 2, 2021 18:51 — forked from A1vinSmith/Privilege Escalation.md
Privilege Escalation: Systemctl (Misconfigured Permissions — sudo/SUID)
@dumpofmemory
dumpofmemory / PowerView-3.0-tricks.ps1
Created April 30, 2021 18:12 — forked from HarmJ0y/PowerView-3.0-tricks.ps1
PowerView-3.0 tips and tricks
# PowerView's last major overhaul is detailed here: http://www.harmj0y.net/blog/powershell/make-powerview-great-again/
# tricks for the 'old' PowerView are at https://gist.github.com/HarmJ0y/3328d954607d71362e3c
# the most up-to-date version of PowerView will always be in the dev branch of PowerSploit:
# https://github.com/PowerShellMafia/PowerSploit/blob/dev/Recon/PowerView.ps1
# New function naming schema:
# Verbs:
# Get : retrieve full raw data sets
# Find : ‘find’ specific data entries in a data set
@dumpofmemory
dumpofmemory / settings.json
Last active July 20, 2020 11:54
Vscode user settings
{
"window.zoomLevel": 0,
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"workbench.colorTheme": "Dark++ Italic",
"workbench.startupEditor": "newUntitledFile",
"files.associations": {
"Dockerfile.*": "dockerfile"
},
@dumpofmemory
dumpofmemory / hex-decode.sh
Created March 12, 2020 23:05
a bash script decode and clean decoded hexstring
echo "\n=-=-=-=-=-=-=-=-=-=-=-= Input hexstring -=-=-=-=-=-=-=-=-=-=\n"
read input
echo "\n=-=-=-=-=-=-=-=-=-=-=-=-= DECODED -=-=-=-=-=-=-=-=-=-=-=-=\n"
decode() {
echo $1 | xxd -r -p
}
OUTPUT="$(decode $input)"
CLEAN=${OUTPUT//[^a-zA-Z0-9_]/.}
@dumpofmemory
dumpofmemory / kali_docker_install.sh
Created February 16, 2020 19:53 — forked from decidedlygray/kali_docker_install.sh
Docker install script for Kali Rolling
#!/bin/bash
#
# Kali Docker Setup Script
# @decidedlygray 20180902
# LICENSE: MIT
#
# Steps taken from: https://docs.docker.com/install/linux/docker-ce/debian/
# And: https://medium.com/@airman604/installing-docker-in-kali-linux-2017-1-fbaa4d1447fe
# Install uses the repository, so we can get updates in the future
@dumpofmemory
dumpofmemory / package.json
Created January 14, 2020 21:53
myprj-backend
{
"name": "backend",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js",
"start:dev": "nodemon --watch",
"test": "echo \"Error: no test specified\" && exit 1"
},
version: '3'
services:
prisma:
image: prismagraphql/prisma:1.34
restart: always
ports:
- "4466:4466"
environment:
PRISMA_CONFIG: |
port: 4466
@dumpofmemory
dumpofmemory / command.txt
Created November 12, 2019 12:28 — forked from fbn4sc/command.txt
Delete all branches except master and develop.
git branch | grep -v "master\|develop" | xargs git branch -D
// TextAreaInput.jsx
import React, { Fragment } from 'react'
import PropTypes from 'prop-types'
import InputError from './InputError'
const TextAreaInput = ({
labelText,
id,
className,
labelClassName,