diff --git a/doc/fortunes.creepy b/doc/fortunes.creepy new file mode 100644 index 0000000000..6c8fd3cde3 --- /dev/null +++ b/doc/fortunes.creepy @@ -0,0 +1,36 @@ +I know what you are doing. +You should better not go to sleep. +You look different when are you awake. +I like you because you haven't been infected. Yet +This is not a joke. +Drop the keyboard and RUN! +Follow the white rabbit +Any invalid command will remove a random file from your home. +Your hair smells different when you are not sleeping. +There was a picture in my phone of me sleeping. I live alone. +My sister says that mommy killed her. Mommy says that I don't have a sister. +Don't be scared of the monsters, just look for them. +Do not walk into the kitchen now. +There's someone under your bed awaiting. +There's no time for explanations. +I'm not looking at you. It's behind. +Let me just change these two bytes aaaaand, the .text is gone. +You will die before this analysis ends. +How much will you pay me for not disclosing this? +Procrastination is opportunity's assassin. +Are your front cameras duck taped? +You are alone. +Neither you or me are special. +Learn the lesson once and for all. +I wanted you to fill what I felt. +I don't believe in accidents. +This is somewhat traumatizing me. +I will never forget the day you typed a gdb command in me. +Be careful +Annhilation is not the way +The Game. +Why that face? Smile, at least for a second. +You are in a trouble. Don't look away +You are a strange creature +If they were going to kill you, would they knock? +This is what I hate most about guys like you. You didn't even try. diff --git a/doc/fortunes.nsfw b/doc/fortunes.nsfw index 6227605965..f3a92938f3 100644 --- a/doc/fortunes.nsfw +++ b/doc/fortunes.nsfw @@ -27,8 +27,11 @@ less stupid than putting CO2 in your ass. Puritans, ruining everything since the 16th century. Better fuck a watermelon. Can you deal with an ascii penis? -two girls one endian +Two girls one endian The Security Glory Hole MY ENDIAN IS HUUUGE -enlarge your endian -anal jokes never get old +Enlarge your endian +Anal jokes never get old +Don't masturbate at me +I live for this shit +You gotta be fucking kidding me diff --git a/doc/fortunes.tips b/doc/fortunes.tips index f9003e3cf9..2033a9b04e 100644 --- a/doc/fortunes.tips +++ b/doc/fortunes.tips @@ -80,3 +80,8 @@ For a full list of commands see `strings /dev/urandom` Thanks for using radare2! give | and > a try piping and redirection Run .dmm* to load the flags of the symbols of all modules loaded in the debugger +Use V! to enter into the visual panels mode (dwm style) +Toggle between disasm and graph with the space key +The more 'a' you add after 'aa' the more analysis steps are executed. +Review all the subcommands of aa to see better ways to analyze your targets. +Use /m to carve for known magic headers. speedup with search. diff --git a/libr/core/cmd_flag.c b/libr/core/cmd_flag.c index 56a3810de2..6355c71528 100644 --- a/libr/core/cmd_flag.c +++ b/libr/core/cmd_flag.c @@ -594,30 +594,38 @@ eprintf ("WTF 'f .xxx' adds a variable to the function? ?!!?(%s)\n"); break; case 'o': { // TODO: use file.fortunes // can be dangerous in sandbox mode - char *fortunes_tips = R2_PREFIX "/share/doc/radare2/fortunes.tips"; - char *fortunes_fun = R2_PREFIX "/share/doc/radare2/fortunes.fun"; - char *fortunes_nsfw = R2_PREFIX "/share/doc/radare2/fortunes.nsfw"; - char *types = (char *)r_config_get (core->config, "cfg.fortunetype"); + const char *fortunes_tips = R2_PREFIX "/share/doc/radare2/fortunes.tips"; + const char *fortunes_fuun = R2_PREFIX "/share/doc/radare2/fortunes.fun"; + const char *fortunes_nsfw = R2_PREFIX "/share/doc/radare2/fortunes.nsfw"; + const char *fortunes_crep = R2_PREFIX "/share/doc/radare2/fortunes.creepy"; + const char *types = (char *)r_config_get (core->config, "cfg.fortunetype"); char *line = NULL, *templine = NULL; int i = 0; - if (strstr(types, "tips")) { + if (strstr (types, "tips")) { templine = r_file_slurp_random_line_count (fortunes_tips, &i); line = templine; } - if (strstr(types, "fun")) { - templine = r_file_slurp_random_line_count (fortunes_fun, &i); + if (strstr (types, "fun")) { + templine = r_file_slurp_random_line_count (fortunes_fuun, &i); if (templine) { free (line); line = templine; } } - if (strstr(types, "nsfw")) { + if (strstr (types, "nsfw")) { templine = r_file_slurp_random_line_count (fortunes_nsfw, &i); if (templine) { free (line); line = templine; } } + if (strstr (types, "creepy")) { + templine = r_file_slurp_random_line_count (fortunes_crep, &i); + if (templine) { + free (line); + line = templine; + } + } if (line) { r_cons_printf (" -- %s\n", line); free (line);