Advertisement
Guest User

Untitled

a guest
Sep 24th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.41 KB | None | 0 0
  1. [root@prodapp03.cros.ny1 ksoviero]# python -c "
  2. > file = open('/etc/shadow').read().strip()
  3. >
  4. > for line in file.split('\n'):
  5. >   if '$' in line:
  6. >     line = [i.split('$') for i in line.split(':')]
  7. >     line[1][-1] = 'PASSWORD_HASH'
  8. > .bash
  9. >     print ':'.join(['$'.join(i) for i in line])
  10. > .bash
  11. >   else:
  12. >     print line"
  13.  File "<string>", line 8
  14.    .bash
  15.    ^
  16. SyntaxError: invalid syntax
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement