http://play.inginf.units.it/#/level/1
\d+
http://play.inginf.units.it/#/level/2
(\w+)(\:\w+){5}
(\w+:){5}\w+
# https://play.golang.org/p/JxqibtHkuO- | |
func chunkBy(items []string, chunkSize int) (chunks [][]string) { | |
for chunkSize < len(items) { | |
items, chunks = items[chunkSize:], append(chunks, items[0:chunkSize:chunkSize]) | |
} | |
return append(chunks, items) | |
} |
http://play.inginf.units.it/#/level/1
\d+
http://play.inginf.units.it/#/level/2
(\w+)(\:\w+){5}
(\w+:){5}\w+
int mb = 1024*1024 | |
Runtime runtime = Runtime.getRuntime() | |
out.println runtime.freeMemory() / mb | |
out.println runtime.totalMemory() / mb | |
out.println runtime.maxMemory() / mb |
func ip2int(ip net.IP) uint32 { | |
if len(ip) == 16 { | |
return binary.BigEndian.Uint32(ip[12:16]) | |
} | |
return binary.BigEndian.Uint32(ip) | |
} | |
func int2ip(nn uint32) net.IP { | |
ip := make(net.IP, 4) | |
binary.BigEndian.PutUint32(ip, nn) |
This Gist summarizes all malware collected in my Kippo SSH Honeypot from June 2013 to present.
Last updated: March 1, 2016
↓ ↓ ↓ Scroll down for the list ↓ ↓ ↓
$ git rebase f034498fbcf4e728d022e1511d630191f2f5ee67^ --interactive | |
# mark each commit that needs updating with "edit" or "e" | |
Then, for each commit: | |
$ git commit --amend --reuse-message=HEAD --author="Edward Bridges <ebridges@squarespace.com>" | |
$ git rebase --continue |
class Node : | |
def __init__( self, data ) : | |
self.data = data | |
self.next = None | |
self.prev = None | |
class LinkedList : | |
def __init__( self ) : | |
self.head = None |