start new:
tmux
start new with session name:
tmux new -s myname
#!/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 |
// 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"); |
#!/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 |
<!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> |
## 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 |
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, |
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:
// 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 = '....'; |