Skip to content

Instantly share code, notes, and snippets.

View shonenada's full-sized avatar
🤷‍♂️
Focusing

Yaoda Liu shonenada

🤷‍♂️
Focusing
View GitHub Profile
<html>
<head>
<title>Gmail Click Jacking with drag and drop Attack Demoooo</title>
<style>
.iframe_hidden {
height: 50px;
width: 50px;
top: 360px;
left: 365px;
overflow: hidden;
# -*- coding: utf-8 -*-
import socket
web_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
web_socket.bind(("127.0.0.1", 8888))
web_socket.listen(5)
while(True):
import sys
import time
def follow(filename):
log_file = open(filename, 'r')
log_file.seek(0, 2)
while True:
line = log_file.readline()
if not line:
# -*- coding: utf-8 -*-
import base64
import json
import os
import pprint
import sys
import urllib2
GITHUB_API = 'https://api.github.com'
import string
from random import choice
from Crypto import Random
from Crypto.Cipher import AES
KEY = ''.join([choice(string.printable) for i in range(16)])
## ref: https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-16-04
#!/usr/bin/env bash
package=$1
if [[ -z "$package" ]]; then
echo "usage: $0 <package-name>"
exit 1
fi
/**
<Gallery>
<Photo for="img in images">
<img class="Photo-img" :src="img.url" />
</Photo>
</Gallery>
**/
.Gallery {
column-count: 5;
printf "$1:$(openssl passwd -apr1 ${2})\n"
package main
import (
"fmt"
"log"
"net/http"
"os"
"github.com/hpcloud/tail"
)
AT=$(echo -n "$DATA" | openssl sha1 -hmac "$QINIU_SK" -binary | openssl base64 -e)
echo "$QINIU_AK:$AT"