Skip to content

Instantly share code, notes, and snippets.

@sz3n
sz3n / bug bounty monitor - assetnote installation
Last active July 8, 2022 05:44
bug bounty monitor - assetnote installation
Assetnote is a new subdomains supervision tools which allow for real-time notifications about
newlly added subdomains
The tool is especially usefull for bug bounty
As I'm starting playing in bug bounties the tool seems extremelly apealing
The project can be found at https://github.com/infosec-au/assetnote
# installation #
/** My VPS is runing Ubuntu LTS 14.04 **/
@sz3n
sz3n / add custom X screen resolution
Last active May 27, 2016 13:37
add custom X screen resolution
// Use CVT to generate standard X config line
cvt -v 1366 768 60
# 1368x768 59.88 Hz (CVT) hsync: 47.79 kHz; pclk: 85.25 MHz
Modeline "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
// use xrandr
sudo xrandr --newmode "1368x768_60.00" 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync
// identify the correct "screen" identifier
xrandr | grep -e " connected [^(]" | sed -e "s/\([A-Z0-9]\+\) connected.*/\1/"
@sz3n
sz3n / flask + apache2 + SSL Lentsencrypt ubuntu 14.04 Raw
Last active June 8, 2016 19:43
flask + apache2 + SSL Lentsencrypt ubuntu 14.04
certbot certonly --webroot -w /var/www/example -d example.com -d www.example.com -w /var/www/thing -d thing.is -d m.thing.is
@sz3n
sz3n / arduino wifi car
Last active June 4, 2016 15:23
arduino wifi car
if faut enlever tout le branchement sur les PIN 0 et 1
sinon le transfer de sketch marche pas
PIN 0 => cable vert
PIN 1 => cable blanc
PIN 1 V => rouge
PIN 1 G => noire
@sz3n
sz3n / Advanced python (1)
Created June 8, 2016 19:48
advanced python leanrning
statsticmethod and classmethod
super (mro and how it works)
generator and list
mixin class in python
@sz3n
sz3n / Powershell Lab
Last active June 15, 2016 15:07
Powershell Lab
#Lab architecture
Win7_dom - lab\domainpc
Win7 - workgroup
Win2008 - lab\domainsrv
Win2012 -Domain Controller
#Setup
vagrant init opentable/win-2012r2-standard-amd64-nocm; vagrant up --provider virtualbox
vagrant box add win7-ie11 http://aka.ms/vagrant-win7-ie11
vagrant init win7-ie11
@sz3n
sz3n / Ubuntu 16.04
Last active June 15, 2016 22:24
Ubuntu 16.04
#HP Microproliant GEN8 - Ubuntu 16.04
#prevent apt from using IPV6
Append the following to /etc/gai.conf
precedence ::ffff:0:0/96 100
apt-get install console-common
sudo dpkg-reconfigure console-data
#vim /etc/network/interfaces
@sz3n
sz3n / Workstation pentest
Created June 17, 2016 08:55
Workstation pentest
https://blog.scrt.ch/2015/11/16/bypassing-tpm-based-bitlocker/
https://github.com/vvalien/win_exp
https://github.com/foxglovesec/Potato
#http://docs.kali.org/kali-on-arm/install-kali-linux-arm-raspberry-pi
@sz3n
sz3n / remote desktop
Created June 17, 2016 18:56
remote desktop
sudo apt-add-repository ppa:remmina-ppa-team/remmina-next
sudo apt-get update
sudo apt-get install remmina remmina-plugin-rdp libfreerdp-plugins-standard
@sz3n
sz3n / mongodb
Last active July 2, 2016 21:30
mongodb
# Start the new service and enable it on boot
systemctl --system daemon-reload
systemctl start mongod.service
systemctl enable mongod.service
mongorestore -d pstm -c pastes --dir=/data/dumpmon/dump/pstm/pastes.bson --host=127.0.0.1
mongodump
db.pastes.find({}).sort({_id:-1}).limit(10)
db.pastes.count()
show dbs