Skip to content

Instantly share code, notes, and snippets.

@KazWolfe
Created June 29, 2016 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KazWolfe/f43585dd38c85cdf2e382889841187d2 to your computer and use it in GitHub Desktop.
Save KazWolfe/f43585dd38c85cdf2e382889841187d2 to your computer and use it in GitHub Desktop.
A No Access Shell
// Compile using `gcc noaccess.c -o noaccess`
//
// Move to /usr/bin, and set as a shell for any deserving users
#include<stdio.h>
int main() {
printf("Shell access is denied. \nConnect using -N, or keep this window open to use your tunnel.\n");
while(1==1);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment