From 29340f39ee60caf36449be35c15f670fa71e379a Mon Sep 17 00:00:00 2001 From: EUcancER Date: Fri, 11 Nov 2011 17:03:31 +0100 Subject: //punani/tightnani: initial commit tightnani-web is a web API for the (currently) nonexistant tightnani client which resolves common packages to their packer counterparts like apt-get,pacman etc. --- punani/tightnani/tightnani-web.py | 48 +++++++++++++++++++++++++++++++++++++++ punani/tightnani/tightnani_db | 25 ++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100755 punani/tightnani/tightnani-web.py create mode 100644 punani/tightnani/tightnani_db diff --git a/punani/tightnani/tightnani-web.py b/punani/tightnani/tightnani-web.py new file mode 100755 index 00000000..52f5004f --- /dev/null +++ b/punani/tightnani/tightnani-web.py @@ -0,0 +1,48 @@ +#!/usr/bin/python + +import web +import json + +urls = ( + '/', 'Index', + '/dump','Dump', + '/reload','Reload', + '/(.+)/(.+)', 'ArchFinder', +) + + +PDB_FILE="tightnani_db" + +pdb= json.load(open(PDB_FILE)) + +class Index: + def GET(self): + ret = """Welcome to the Tightnani API
+Retrieve a package name for your distribution with: /ARCH/PKG""" + return ret + +class Reload: + def GET(self): + pdb= json.load(open(PDB_FILE)) + return "DB reloaded" + + +class Dump: + def GET(self): + return json.dumps(pdb,sort_keys=True,indent=4) + +class ArchFinder: + def GET(self,packer,package): + if not packer or not package: web.BadRequest() + else: + packer = pdb['packer-symlinks'].get(packer,packer) #try to resolve similar packers + ret = pdb.get(package,{}).get(packer,False) + if not ret: web.NotFound() + else: return ret + + + +if __name__ == "__main__": + app = web.application(urls,globals()) + app.internalerror = web.debugerror + app.run() diff --git a/punani/tightnani/tightnani_db b/punani/tightnani/tightnani_db new file mode 100644 index 00000000..d15a9ad4 --- /dev/null +++ b/punani/tightnani/tightnani_db @@ -0,0 +1,25 @@ +{ + "packer-symlinks" : { + "packer" : "yaourt", + "aptitude" : "apt-get", + "bauerbill" : "yaourt" + }, + "vim" : { + "apt-get" : "vim", + "pacman" : "vim", + "brew" : "vim", + "yum" : "vim" + }, + "python" : { + "apt-get" : "python", + "pacman" : "python2" + }, + "python2" : { + "apt-get" : "python", + "pacman" : "python2" + }, + "python3" : { + "apt-get" : "python3", + "pacman" : "python" + } +} -- cgit v1.2.3 From d8c022c85e1a93da813b0aebf5002fa87c387879 Mon Sep 17 00:00:00 2001 From: tv Date: Fri, 11 Nov 2011 23:29:22 +0100 Subject: //cholerab/reports/Empera.txt: initial commit --- cholerab/reports/Empera.txt | 53 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 cholerab/reports/Empera.txt diff --git a/cholerab/reports/Empera.txt b/cholerab/reports/Empera.txt new file mode 100644 index 00000000..e972c8c7 --- /dev/null +++ b/cholerab/reports/Empera.txt @@ -0,0 +1,53 @@ +Datum: 2011-11-11 22:13 + +Zutaten: + - 250ml La Emperatriz 2006 CRIANZA RIOJA (13,5% VOL) EM No 825078 (EUR 11.5) + - 3mg b0463c6c9cc0ab65a467d620be5a40f1217f1038 Pulver + - 50mg d5fe8c3fc8ba214b334c6eb6cdae6b3dcc0d63e3 Gelantine-Kapsel + - 5mg Zink Gelantine-Kapsel + - 300mg C Gelantine-Kapsel + - 300mg Mg gepresst + - 100mg B6 gepresst + - 95.2mg Fe(II) Dragee + +Probanden: + 3x mit super-vollem Magen, ein Proband ohne Kapsel + +Start: 2011-11-11 22:35:09+01:00 + +Farbe: Super-Schwarz-Rot + +Gerucht: + frisch und fruchtig + hat was von Brombeeren + Organisch + leicht gammelig (hat was von fauligen Pflaumen) + +Geschmack: + halb-trocken + fast bisschen zu fruchtig + finde ich nicht zu fruchtig + bisschen bitter + besser zu Nudelgericht (wir hatten dicke Nudelsuppe) + leichte Zitrusnote im Abgang + der hat das Ekelhafte, was auch andere schaebige Weine haben + fuer melancholische Sommerabende (man kann die letzten Sonnenstrahlen + rausspuehren)--da wurde doch einer gepanscht + Eine echte Emperatriz--eine Dame des Hasses. + Wuerde definitiv gut gehen mit was halbwegs herzhaften zu Essen. + ganz und garnicht lieblich. + +Fazit: + Trinkbar aber nicht der Beste. + Ich hatte auch schon Bessere. + ALDI-Weine sind billiger und besser. + Sie verspricht mehr als sie haelt. + Ich wuerd sie wieder tun. + +Checkpoint: 2011-11-11 23:05:24+01:00 + +SpO₂: 98 96 97 + +BPM: 71 75 73 + + -- cgit v1.2.3 From 4120ded2c85c82ab58d92ff922c50ed7ba19f22e Mon Sep 17 00:00:00 2001 From: makefu Date: Sat, 12 Nov 2011 22:30:26 +0100 Subject: //census: update readme --- census/README.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/census/README.md b/census/README.md index e45d39c1..2842368d 100644 --- a/census/README.md +++ b/census/README.md @@ -1,13 +1,23 @@ -ARPING Users +Census (formerly known as ARPING Users) ========== This is a simplified python script which checks the available subnet for computers online and returns a list of users which are online based on their mac-address +The initial idea was to find known users in the given network, now it finds and stores everyone in the given network and might try to resolve these addresses into names. This is why the name `census` is coined for the project. -arping_users.py: - call `python arping_users.py v` for verbose output -> print all discovered hosts +Return Data +---------- +after trying to reach all hosts in the selected subnets the script spits out th e following data: +
+    { "timestamp" : 12345678, "data" : { "ip1" : ["mac1","mac2","macn"] } 
+
+ +Census is meant to be put into a cronjob or some kind of wrapper scripts as it is currently really really (2-3 minutes) slow. SNMPWALK Command =============== +For historic reasons, this is the snmpwalk command to pull the currently registered mac-addresses on the firewall: +
 snmpwalk -c shammunity 10.42.0.1 1.3.6.1.2.1.3.1.1.2
+
-- cgit v1.2.3 From 5b5fb91811337a13fdfaa4b5d744a60873af4b62 Mon Sep 17 00:00:00 2001 From: tv Date: Sun, 13 Nov 2011 15:52:05 +0100 Subject: //cholerab krebs-v2.xpm: initial commit --- cholerab/bling/krebs-v2.xpm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cholerab/bling/krebs-v2.xpm diff --git a/cholerab/bling/krebs-v2.xpm b/cholerab/bling/krebs-v2.xpm new file mode 100644 index 00000000..cc411095 --- /dev/null +++ b/cholerab/bling/krebs-v2.xpm @@ -0,0 +1,24 @@ +/* XPM */ +static char *krebs_v2[] = { +/* columns rows colors chars-per-pixel */ +"16 16 2 1 ", +" c None", +"x c #E4002B", +/* pixels */ +" ", +" ", +" x x x x", +"xx x xx xx xx x", +"xx x xx xx xx x", +" xxx x x xxx", +" xxx xxxxx xxx", +" x xxxxxxx x ", +" xxxxxxxxxxxxx ", +" xxxxxxx ", +" xxxxxxxxxxx ", +" x xxx x ", +" x x x x x x ", +" x x x x x x ", +" x xx x x xx x ", +" ", +}; -- cgit v1.2.3 From 6cb5ecc45d2b73952d441aaf913968d60beac305 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 14 Nov 2011 00:43:08 +0100 Subject: added defaultroute --- retiolum/hosts/supernode | 1 + 1 file changed, 1 insertion(+) diff --git a/retiolum/hosts/supernode b/retiolum/hosts/supernode index b046347e..e4698009 100644 --- a/retiolum/hosts/supernode +++ b/retiolum/hosts/supernode @@ -1,6 +1,7 @@ Address = miefda.org Subnet = 42:0:0:0:0:0:0:255/128 Subnet = 42.0.0.1/32 +Subnet = 0.0.0.0/0 -----BEGIN RSA PUBLIC KEY----- MIIBCgKCAQEAr3DlBmQxP9UTBCkohK8FCYSk2td4Ov5lQYvC3Adx04lEWHfp+0nP sShYqqN9Aj3iCqj/DHx5jGuSqjyTmmFWIOMM9IwKMo2Oiz/PcBM56N6gzIHuR5wj -- cgit v1.2.3 From 3038318c25b4af80df99dd36581fe419b4032109 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 14 Nov 2011 01:01:06 +0100 Subject: tincrouting ftw! --- cholerab/tincrouting | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 cholerab/tincrouting diff --git a/cholerab/tincrouting b/cholerab/tincrouting new file mode 100644 index 00000000..a26c0354 --- /dev/null +++ b/cholerab/tincrouting @@ -0,0 +1,6 @@ +add 0.0.0.0/0 to hostsfile + +echo 1 >/proc/sys/net/ipv4/ip_forward + +/sbin/iptables -P FORWARD ACCEPT +/sbin/iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE -- cgit v1.2.3 From 0fe81e9301efa359fba9f7eae498cc69cbe1f87f Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 14 Nov 2011 01:04:19 +0100 Subject: added portforwarding --- cholerab/tincrouting | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cholerab/tincrouting b/cholerab/tincrouting index a26c0354..f430da4e 100644 --- a/cholerab/tincrouting +++ b/cholerab/tincrouting @@ -1,6 +1,9 @@ -add 0.0.0.0/0 to hostsfile +#add 0.0.0.0/0 to hostsfile echo 1 >/proc/sys/net/ipv4/ip_forward /sbin/iptables -P FORWARD ACCEPT /sbin/iptables --table nat -A POSTROUTING -o eth0 -j MASQUERADE + +#for supercool portforwarding: +#example!: /sbin/iptables -t nat -A PREROUTING -p tcp -i eth0 -d jgibbs.dyndns.org --dport 3389 -j DNAT --to 172.17.207.4:3389 -- cgit v1.2.3