# runs only on LINUX! # https://www.aychedee.com/2012/03/14/etc_shadow-password-hash-formats/ # Types of passwords used: # 1. Direct lookup on google (sha1, md5) (from https://www.passwordrandom.com/most-popular-passwords) # 2. password within top 100 # 3. brute-forced 4,5,6,7 characters # 4. dictionary English word # 5. pattern (dictionary + 2 digits or specials), # 6. custom word # 7. pattern with known structure import crypt class hwpasswd: prefix = 'aychedee' counter = 1 suffix = ':15405:0:99999:7:::' def myprint(self, value): print(self.prefix + str(self.counter) + ':' + value + self.suffix) self.counter = self.counter + 1 def generate_passwords(self): self.prefix = 'user' self.suffix = '' self.myprint('bee783ee2974595487357e195ef38ca2') # mustang self.myprint('21BD12DC183F740EE76F27B78EB39C8AD972A757') # P@ssw0rd self.myprint('2F2BB917A7B0317ED404511AFA79514A2133DFD8') # dragon1 self.suffix = ':15405:0:99999:7:::' self.myprint(crypt.crypt('PASSWORD', '$6$vb1tLY1qiY')) self.myprint(crypt.crypt('PaSsWoRd', '$6$vb1tx5rqiY')) self.myprint(crypt.crypt('nbuser123', '$6$Lj78LY1qiY')) self.myprint(crypt.crypt('solarwinds123', '$6$Lj78LY1qiY')) self.myprint(crypt.crypt('eiz', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('k8k', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('#8R', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('u8ro', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('ro1v', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('k*N9', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('kudsn', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('jf9k3', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('kR5)d', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('xxlaao', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('dm65ka', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('!$4_@0', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('ysdmwl', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('oes028', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('cD3w!2', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('kdgfffw', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('qkqn63m', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('&+nvAJ3', '$1$sD2o3Rj3')) self.myprint(crypt.crypt('miracle77', '$5$sD2o3Rj3')) self.myprint(crypt.crypt('22urgent', '$5$sD2o3Rj3')) self.myprint(crypt.crypt('password12#', '$5$sD2o3Rj3')) self.myprint(crypt.crypt('pv204password', '$6$sD2o3Rj3')) self.myprint(crypt.crypt('pv204password1', '$6$sD2o3Rj3')) self.myprint(crypt.crypt('pv204password#', '$6$sD2o3Rj3')) self.prefix = 'user_4xSame3CharsWord_' self.myprint(crypt.crypt('dogdogdogdog', '$6$sD2o3Rj3')) self.prefix = 'user_4xSame4CharsWord_' self.myprint(crypt.crypt('livelivelivelive', '$6$sD2o3Rj3')) self.prefix = 'user_4xSame5CharsWord_' self.myprint(crypt.crypt('coinscoinscoinscoins', '$6$sD2o3Rj3')) self.prefix = 'user_2xSame3CharsWord_then_5CharsWord' self.myprint(crypt.crypt('maxmaxspeed', '$6$sD2o3Rj3')) def main(): hw = hwpasswd() hw.generate_passwords() if __name__ == "__main__": main()