Skip to content

Instantly share code, notes, and snippets.

@dwendt
Created July 20, 2015 23:37
Show Gist options
  • Select an option

  • Save dwendt/ccf548cf646f1bce3d11 to your computer and use it in GitHub Desktop.

Select an option

Save dwendt/ccf548cf646f1bce3d11 to your computer and use it in GitHub Desktop.
prolog soln for sdhit
1), open('/home/ctf/haas/jhknsjdfhef_flag_here',read,Str), repeat, get0(Str, X), write(X), nl, X == end_of_file, close(Str
get0(Str, AA), get0(Str, AB), get0(Str, AC), get0(Str, AD), get0(Str, AE), get0(Str, AF), get0(Str, AG), get0(Str, AH), get0(Str, AI), get0(Str, AJ), get0(Str, AK), get0(Str, AL), get0(Str, AM), get0(Str, AN), write(X), write(AA), write(AB), write(AC), write(AD), write(AE), write(AF), write(AG), write(AH), write(AI), write(AJ), write(AK), write(AL), write(AM), write(AN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment