Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@prodapp03.cros.ny1 ksoviero]# python -c "
- > file = open('/etc/shadow').read().strip()
- >
- > for line in file.split('\n'):
- > if '$' in line:
- > line = [i.split('$') for i in line.split(':')]
- > line[1][-1] = 'PASSWORD_HASH'
- > .bash
- > print ':'.join(['$'.join(i) for i in line])
- > .bash
- > else:
- > print line"
- File "<string>", line 8
- .bash
- ^
- SyntaxError: invalid syntax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement