Skip to content

Instantly share code, notes, and snippets.

View pawiromitchel's full-sized avatar
🔥
By doing nothing, you become nothing

Mitchel pawiromitchel

🔥
By doing nothing, you become nothing
View GitHub Profile
@pawiromitchel
pawiromitchel / gnosis-safe-multisend-submitter.js
Created September 21, 2021 12:03 — forked from jjgonecrypto/gnosis-safe-multisend-submitter.js
Programmatically submit multiple transactions to a gnosis safe to be signed as one
// Extrapolated from https://github.com/gnosis/safe-core-sdk
const ethers = require('ethers');
const { EthersAdapter } = require('@gnosis.pm/safe-core-sdk');
const Safe = require('@gnosis.pm/safe-core-sdk').default;
const SafeServiceClient = require('@gnosis.pm/safe-service-client').default;
const providerUrl = '....';
@pawiromitchel
pawiromitchel / find-string-in-files-linux.md
Last active December 10, 2020 12:01 — forked from jmuyden/find-string-in-files-linux.md
Find/Search string in files LINUX

Do the following:

grep -rnw '/path/to/somewhere/' -e 'pattern' -r or -R is recursive, -n is line number, and -w stands for match the whole word. -l (lower-case L) can be added to just give the file name of matching files. Along with these, --exclude, --include, --exclude-dir flags could be used for efficient searching:

This will only search through those files which have .c or .h extensions:

def readmail(volume):
time.sleep(1.5)
m = imaplib.IMAP4_SSL("imap.gmail.com")
m.login(user, pwd)
m.select('"[Gmail]/All Mail"')
resp, items = m.search(None,
"NOT SEEN FROM tradingview")
items = items[0].split()
for emailid in items:
resp, data = m.fetch(emailid,
@pawiromitchel
pawiromitchel / tutorial_kali_autologin_afterupdate.txt
Created November 2, 2019 12:23 — forked from intrd/tutorial_kali_autologin_afterupdate.txt
Kali light xfce4 root autologin (works after lightdm update)
## Kali light xfce4 root autologin (works after lightdm update)
# @author intrd - http://dann.com.br/
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/
After lighdtdm update root autologin is broken fix doing this:
nano /etc/lightdm/lightdm.conf
at [Seat:*] group uncomment/edit:
autologin-user=root
autologin-user-timeout=0
@pawiromitchel
pawiromitchel / gist:802079519cabd40b006e90e42339c586
Last active February 25, 2019 20:36 — forked from pitch-gist/gist:2999707
HTML: Simple Maintenance Page
<!doctype html>
<title>Site Maintenance</title>
<style>
body { text-align: center; padding: 150px; }
h1 { font-size: 50px; }
body { font: 20px Helvetica, sans-serif; color: #333; }
article { display: block; text-align: left; width: 650px; margin: 0 auto; }
a { color: #dc8100; text-decoration: none; }
a:hover { color: #333; text-decoration: none; }
</style>
@pawiromitchel
pawiromitchel / supergobuster.sh
Created June 15, 2018 00:46 — forked from lokori/supergobuster.sh
gobuster enumerator for hack-the-box machines. This generates huge amount of useless requests..
#!/bin/bash
set -eu
URL=$1
clear
echo "Super go bustering for super brute: $URL"
gobuster -u $URL -l -s 200,204,301,302,307,403 -w /usr/share/wordlists/SecLists/Discovery/Web-Content/tomcat.txt
gobuster -u $URL -l -s 200,204,301,302,307,403 -w /usr/share/wordlists/SecLists/Discovery/Web-Content/nginx.txt
@pawiromitchel
pawiromitchel / index.js
Created April 20, 2018 03:04 — forked from JonathanMH/index.js
JSON Web Token Tutorial: Express
// file: index.js
var _ = require("lodash");
var express = require("express");
var bodyParser = require("body-parser");
var jwt = require('jsonwebtoken');
var passport = require("passport");
var passportJWT = require("passport-jwt");
@pawiromitchel
pawiromitchel / install_docker_kali.sh
Last active July 18, 2019 16:24 — forked from nikallass/Kali 2017.1 x64, Docker-ce Install script
Kali 2018, Docker-ce Install script
#!/bin/bash
# update apt-get
export DEBIAN_FRONTEND="noninteractive"
sudo apt-get update
# remove previously installed Docker
sudo apt-get remove docker docker-engine docker.io* lxc-docker*
# install dependencies 4 cert
@pawiromitchel
pawiromitchel / tmux-cheatsheet.markdown
Created July 18, 2017 12:32 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname