code

From A on B to C on D

 code, hack, security, tech  Comments Off on From A on B to C on D
Apr 272014
 

I find iptables to be a bit of a beast… so for posterity (or my own sanity, in case I lost this, I might recover from search engine caches!) this simply forwards a port (A) of a certain protocol from one host (B) to a second port (C) on a 2nd IP (D). Linux only, unless your OS happens to support iptables… no error checking, although it will echo […]

https server

 code, crypto, python, security  Comments Off on https server
Mar 112014
 

In conjunction with the openssl scripts… a little bit of python code to fire up an ssl server… lots of them out there, this one is mine. #!/usr/bin/env python # # fire up an HTTPS/ssl web server in the PWD (defaults to localhost:8081) # # optional – give a file name to serve up, like "$0 foofile.html" # If you use this option it’ll wait a few seconds and […]

openssl… let me count the ways I hate you….

 code, crypto, philosophy, security, tech, Uncategorized  Comments Off on openssl… let me count the ways I hate you….
Mar 112014
 
openssl... let me count the ways I hate you....

I put a script or two on github; generates a CA and server and client certs, suitable (I hope!) for openvpn and https and all that. Based on the easy-rsa scripts, but I didn’t find them that easy to use. A haiku to openssl: openssl a black crane over the lake may you rot in hell                   Image is Hokusai’s “Mount […]

progress…

 code, dinosaur  Comments Off on progress…
Mar 042014
 

In case I run into this again… fired up a VM with ubuntu 13.10, 64 bit… and after installing sshd (apt-get install openssh-server) it wouldn’t start; instead I’d get: # services ssh start start: Unknown job: ssh I didn’t see any answers out there, so I waded into the /etc/init.d/ssh script… it calls the “init_is_upstart” function here: check_for_upstart() { if init_is_upstart; then     exit $1 fi } The […]

dump supermicro stuff

 code, embedded, ipmi, python  Comments Off on dump supermicro stuff
Jan 252014
 

A trivial utility to dump password/account information from a special file found on a SM BMC (see this R7 post about the PSBlock file.) (Later edit – put a new version on github that fixes a bug) #!/usr/bin/env python # usage: $0 file # # (try to) Dump out passwords/accounts from a SM binary file; # usually this is in /conf or /vm on the BMC, and goes by […]

 Posted by at 2:32 pm on January 25, 2014