Skip to content

Instantly share code, notes, and snippets.

@dangarbri
Created November 10, 2023 18:26
Show Gist options
  • Save dangarbri/ae80c4bb1570ae1f6b6c1f300d10f74a to your computer and use it in GitHub Desktop.
Save dangarbri/ae80c4bb1570ae1f6b6c1f300d10f74a to your computer and use it in GitHub Desktop.
crypt, since it exists only as a c function and not a binary
#include <unistd.h>
#include <stdio.h>
int main(int argc, char** args) {
if (argc < 3) {
printf("Usage: %s password salt\n", args[0]);
}
printf("%s\n", crypt(args[1], args[2]));
}
@dangarbri
Copy link
Author

Compile with gcc crypt.c -lcrypt -o crypt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment