-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
70 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
add_executable(uselinux uselinuxcommon.c userspace.c main.c | ||
deskenv.c yearoflinuxdesktop.c) | ||
deskenv.c yearoflinuxdesktop.c hackerman.c) | ||
add_executable(antisnap antisnap.c uselinuxcommon.c) | ||
target_link_libraries(antisnap PUBLIC common argparse) | ||
target_link_libraries(uselinux PUBLIC common argparse) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/** | ||
* @file hackerman.c | ||
* @author Lemuria | ||
* @brief Hackerman mode. | ||
* @date 2022-11-18 | ||
* | ||
* @copyright MIT License | ||
* | ||
* Legal disclaimer: Does not actually hack UNATCO, Area 51, the Statue of | ||
* Liberty, the Illuminati, or your local bank. | ||
*/ | ||
|
||
#include "hackerman.h" | ||
#include <common/utils.h> | ||
|
||
static char* places_to_hack[] = { | ||
"UNATCO", "AREA 51", "STATUE OF LIBERTY", | ||
"ILLUMINATI", "BANKS" | ||
}; | ||
|
||
void hackerman_mode() | ||
{ | ||
printf("AUGMENTATIONS ACTIVATED\n"); | ||
printf("HACKING IN PROGRESS\n"); | ||
|
||
for (size_t i = 0; i < LEN(places_to_hack); i++) | ||
{ | ||
printf("%s...", places_to_hack[i]); | ||
msleep(randint(140, 280)); | ||
printf("HACKED\n"); | ||
} | ||
} | ||
|
||
void hackerman(char *distro) | ||
{ | ||
if (!strcasecmp(distro, "kali")) | ||
{ | ||
printf("Activating Hackerman mode....\n"); | ||
hackerman_mode(); | ||
} | ||
else | ||
{ | ||
printf("fatal: --hackerman requires Kali Linux (use -d kali)\n"); | ||
exit(1); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#ifndef HACKERMAN_H | ||
#define HACKERMAN_H | ||
|
||
/** | ||
* @brief Activate Hackerman mode. Requires Kali Linux, a distribution that | ||
* comes preinstalled with several tools for hacking. | ||
* | ||
* @param distro Distribution being used. Must be Kali Linux. | ||
*/ | ||
void hackerman(char *distro); | ||
|
||
/** | ||
* @brief Perform all the operations normally performed during Hackerman | ||
* mode, such as "hacking" NASA, Area 51 and in general displaying unrealistic | ||
* hacking effects such as code that makes no sense. | ||
*/ | ||
void hackerman_mode(); | ||
|
||
#endif /* HACKERMAN_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters