Skip to content

Instantly share code, notes, and snippets.

@rkrishnasanka
rkrishnasanka / passcracker.py
Created July 7, 2013 10:52
Salted Unix password cracker (requires a dictionary aka dict.txt)
import crypt
def testPass(cryptPass):
salt = cryptPass[0:2]
dictFile = open('dict.txt','r')
for word in dictFile.readlines():
word = word.strip('\n')
cryptWord = crypt.crypt(word,salt)
if(cryptWord == cryptPass):
print "[+] Found Password: "+ word+"\n"
@rkrishnasanka
rkrishnasanka / vnc
Last active December 18, 2015 14:39
Tight VNC startup script. Be sure to '''chmod 755 vnc'''
#!/bin/bash
sudo tightvncserver
sudo vncserver :1 -geometry 1366x768 -depth 24
@rkrishnasanka
rkrishnasanka / jl8tocbz.py
Created April 7, 2013 13:33
A simple script that downloads the JL8 Comics from http://www.limbero.org and makes it into a cbz
import urllib2
import os
import zipfile
def downloadimage(img):
r = urllib2.urlopen("http://www.limbero.org/jl8/comics/"+img)
f= open(path+'\\'+img,'wb')
f.write(r.read())
f.close()
print img + ' has been downloaded and saved ! \n'
@rkrishnasanka
rkrishnasanka / CS348 - Functional Hardware Verification
Last active May 18, 2024 07:51
Solutions for Udacity Course CS348 - Functional Hardware Verification
Solutions for Udacity Course CS348 - Functional Hardware Verification