Skip to content

Instantly share code, notes, and snippets.

✔️
Maintainer Of: https://wiki.gentoo.org/wiki/Android/adb

wuseman wuseman

✔️
Maintainer Of: https://wiki.gentoo.org/wiki/Android/adb
Block or report user

Report or block wuseman

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wuseman
wuseman / wbadips.sh
Created Jun 15, 2019
Script for add ip addresses from badips.com
View wbadips.sh
#!/bin/bash
# Author: wuseman <wuseman@nr1.nu>
# Simple script for add ip addresses from badips.com
# Recommended: Add this to cron to run once a day, it wont add same ip twice..
# Another script i fixed for fun for a stranger on facebook :-)
BANNEDIPS="/root/ip-addresses.txt"
if [[ ! -f "$BANNEDIPS" ]]; then
printf "Creating $BANNEDIPS...\n"
@wuseman
wuseman / wssh-monitor.sh
Created Jun 15, 2019
Script for see brute force attempts in realtime
View wssh-monitor.sh
#!/bin/bash
# Author: wuseman <wuseman@nr1.nu>
# Simple script for monitor ssh brute attempts, fixed this for some stranger on fcebook for fun.
# Output: [2011-01-01 - 19:01:10] Someone have tried to login from <xx.xx.xx.xx> user=username
while true; do
inotifywait -r -q --format %w /var/log/auth.log|grep -i "Failed password for"|tail -n 1|grep -oE '\b([0-9]{1,3}\.){3}[0-9]{1,3}\b'
echo -e "[$(date +%Y-%m-%d\ -\ %H:%M:%S)] - Someone tried to login from \e[1;31m$(cat /var/log/auth.log|grep "authentication failure; l"|awk -Frhost= '{print $2}'|tail -n 1 )\e[0m"
# adda din iptabls oneliner här
# # /sbin/iptables -I INPUT -i eth1 -s $VARIABEL -j DROP
View install-weechat.sh
#!/bin/bash
sudo sh -c 'echo "deb https://weechat.org/ubuntu $(lsb_release -cs) main" >> /etc/apt/sources.list.d/weechat.list'
sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 11E9DE8848F2B65222AA75B8D1820DB22A11534E
sudo apt-get update
sudo apt-get install weechat
@wuseman
wuseman / install-rar2fs.sh
Last active Apr 1, 2019
install-rar2fs.sh
View install-rar2fs.sh
#!/bin/bash
# Author: wuseman <wuseman@nr1.nu>
rrrr222() {
cat << "EOF"
____ __
_ __ __ _ _ _|___ \ / _|___
| '__/ _` | '__|__) | |_/ __| Author: wuseman
| | | (_| | | / __/| _\__ \ Contact: wuseman@nr1.nu
|_| \__,_|_| |_____|_| |___/
@wuseman
wuseman / no-youtubeads.js
Last active Jul 16, 2019
Remove ads on youtube without any third-party-tool.
View no-youtubeads.js
# Paste below line in your browser console window and ads are gone.
# Magic! ;-)
# Author: wuseman
document.cookie="VISITOR_INFO1_LIVE=oKckVSqvaGw; path=/; domain=.youtube.com";window.location.reload();
@wuseman
wuseman / huawei-blotware.sh
Last active Feb 13, 2019
huawei-bloatware-remover.sh
View huawei-blotware.sh
#!/bin/bash
####
#### Copyright (C) 2019 wuseman <wuseman@nr1.nu> - All Rights Reserved
#### Created: 13/02/2019
####
#### A notice to all nerds.
#### If you will copy developers real work it will not make you a hacker.
#### Resepect all developers, we doing this because it's fun!
####
# adb shell dumpsys window windows | grep -E 'mCurrentFocus|mFocusedApp'|grep '/'|awk -F'u0' '{print $2}'|awk '{print $1}'|cut -d/ -f1
@wuseman
wuseman / wfind-alpha.sh
Created Feb 7, 2019
Move all folders and sort them from a-z
View wfind-alpha.sh
#!/bin/bash
# Author: wuseman
for i in *; do I=`echo $i|cut -c 1|tr a-z A-Z`; if [ ! -d "$I" ]; then mkdir "$I"; fi; mv "$i" "$I"/"$i"; done
@wuseman
wuseman / cpasswords.sh
Last active Mar 17, 2019
Capture passwords and usernames.
View cpasswords.sh
#!/bin/bash
####
#### Copyright (C) 2014 wuseman <wuseman@nr1.nu> - All Rights Reserved
#### Created: 12/12/2014
####
#### A notice to all nerds.
#### If you will copy developers real work it will not make you a hacker.
#### Resepect all developers, we doing this because it's fun!
####
#### Usage: ./cpasswords.sh - Wait on a target!
View gist:55c5c7606b41d7740a9312b7c750fc24
#!/bin/bash
####
#### Author: wuseman <wuseman@nr1.nu>
####
lynx -listonly -nonumbers -dump https://djmag.com/top100djs|sed '1d'|cut -d- -f5,6,7|sed -n '180,$p'|nl --number-format=rn --number-width=3|sed 's/-/ /g'|sed -e 's/.*/\L&/' -e 's/\<./\u&/g'
@wuseman
wuseman / wtop250.sh
Last active Mar 17, 2019
Print top 250 movies from iMDB in console.
View wtop250.sh
#!/bin/bash
####
#### Author: wuseman <wuseman@nr1.nu>
#### Preview: https://imgur.com/a/yRUciq1
####
lynx -dump https://www.imdb.com/chart/top | grep -o '...[[0-9]].*' | sed -n '69,320p' |cut -f3 -d"["|sed 's/^/[/g'|sed 's/]/] /g'|sed 's/...$/(&)/g'|cut -c6-|awk '{printf("%1d %s\n", NR, $0)}' | column
You can’t perform that action at this time.