Skip to content

Instantly share code, notes, and snippets.

View MichaelOultram's full-sized avatar

Michael Oultram MichaelOultram

View GitHub Profile

Keybase proof

I hereby claim:

  • I am MichaelOultram on github.
  • I am michaeloultram (https://keybase.io/michaeloultram) on keybase.
  • I have a public key whose fingerprint is 3FC4 784E 3537 F4D5 C54F 7829 7E3C 3D87 DDA7 C2CE

To claim this, I am signing this object:

@MichaelOultram
MichaelOultram / JohnToCanvas.java
Last active January 30, 2016 15:16
Converts JohnTheRipper output to Username:Password (requires Java 8)
// Export passwords: "john --show shadow pword > john.txt"
// Format passwords: "java JohnToCanvas john.txt > canvas.txt"
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.stream.Stream;
public class JohnToCanvas {
public static void main(String[] args) throws IOException {
Stream<String> lines = Files.lines(Paths.get(String.join(" ", args)));
lines.forEach((line) -> {if (line.contains(":")) System.out.println(line.split(":")[0] + ":" + line.split(":")[1]);});