This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from scapy.all import * | |
import os | |
import signal | |
import sys | |
import threading | |
import time | |
#ARP Poison parameters | |
gateway_ip = "10.0.0.1" | |
target_ip = "10.0.0.250" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from ctypes import * | |
import pyHook | |
import pythoncom | |
import win32clipboard | |
import sys | |
current_window = None | |
current_command = False | |
user32 = windll.user32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Frequent use alias | |
alias copypath='pwd|pbcopy' | |
alias dlmp3='youtube-dl -x --audio-format mp3' | |
alias detectvolume='ffmpeg -vn -sn -dn -af "volumedetect" -f null /dev/null -i' | |
setopt HIST_SAVE_NO_DUPS | |
setopt HIST_IGNORE_ALL_DUPS | |
setopt HIST_FIND_NO_DUPS | |
unsetopt share_history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Convert all files to Traditional Chinese | |
for f in * ; do mv $f `echo $f | cconv -f UTF-8 -t UTF8-HK` ; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
function jsonval { | |
temp=`echo $json | sed 's/\\\\\//\//g' | sed 's/[{}]//g' | awk -v k="text" '{n=split($0,a,","); for (i=1; i<=n; i++) print a[i]}' | sed 's/\"\:\"/\|/g' | sed 's/[\,]/ /g' | sed 's/\"//g' | grep -w $prop` | |
echo ${temp##*|} | |
} | |
json=`curl -s -X GET http://twitter.com/users/show/$1.json` | |
prop='profile_image_url' | |
picurl=`jsonval` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Mail.app can't run a "Contains" filter with a regex, | |
-- so you can't filter on HTML content. Until now. | |
using terms from application "Mail" | |
on perform mail action with messages theMessages for rule theRule | |
try | |
repeat with theMessage in theMessages | |
-- Getting the content as string converts all HTML tags to '?' and just leaves text content | |
set theBody to quoted form of (theMessage's content as string) | |
-- It's awkwardly hard to get sed to work w/ mult. lines, so collapse newlines | |
set theCommandString to "echo " & theBody & " | tr '\\n' ' ' | sed \"s/brett Author/*MATCHED*(&)/\"" as string |
OlderNewer