Fix typos in different locations

This commit is contained in:
Apkunpacker 2023-01-15 20:38:49 +05:30
parent 7f101ba546
commit 2090ca5c6f
21 changed files with 29 additions and 29 deletions

View File

@ -106,7 +106,7 @@ RUN useradd -m r2 && \
adduser r2 sudo && \
echo "r2:r2" | chpasswd
# Initilise base user
# Initialise base user
USER r2
WORKDIR /home/r2
ENV HOME /home/r2

View File

@ -26,7 +26,7 @@ What you **CANNOT** do between X.Y.0 and X.Y.8:
What you **CAN** do between X.Y.0 and X.Y.8:
* Remove global symbols (they shouldnt be accessed directly anyway)
* Remove global symbols (they shouldn't be accessed directly anyway)
* Change internal structs or functions (static)
* Refactor the programs (those are not libraries and dont expose apis)
* If you really need to add a new public function use `R2_XY0 static inline`

View File

@ -149,7 +149,7 @@ Common operations:
* Check dstreg
* Check srcreg
* Get destinaion
* Get destination
* Is jump
* Is conditional
* Evulate

View File

@ -85,7 +85,7 @@ This is an unacceptable million year dungeon.
The Hard ROP Cafe
Wait a minute! I found a bug, self-fixing ... OK
Hold on, this should never happen!
Well this is embarrasing ...
Well this is embarrassing ...
THIS IS NOT FUNNY
--
Can you stand on your head?
@ -140,7 +140,7 @@ When you sold that exploit, what they really bought, was your silence.
Greetings, human.
nothing personal, just bitness
Too old to crash
Finnished a beer
Finished a beer
ESIL ruined my life
ESIL: The Aftersleep
Insert coin to continue ...
@ -198,7 +198,7 @@ r2 talks to you. tries to make you feel well.
Now i'm like an evil engineer. MUAHAHAH
We only have bugs, features are an unintended side-effect
There are 5 minutes from WTF to FIX in r2land
Quantum dissasemble: it's there as long as you don't observe it
Quantum disassemble: it's there as long as you don't observe it
Ceci n'est pas une r2pipe
Buy a mac
(gdb) ^D

View File

@ -83,5 +83,5 @@ 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.
You can use registers in math expressions. For example: 'wx 1234 @ esp - 2'
For HTTP authentification 'e http.auth = 1', 'e http.authfile = <path>'
For HTTP authentication 'e http.auth = 1', 'e http.authfile = <path>'
Tip: do 'r2pm -i r2premium; echo "e cfg.fortunes.type = nsfw" >> ~/.radare2rc' for a premium r2 experience

View File

@ -109,7 +109,7 @@ found!
> agfb
Braile UTF8 chars permit to create pixel-art style using terminals, which permits
a higer resolution than using ascii-art. This is used when the minigraph option
a higher resolution than using ascii-art. This is used when the minigraph option
is set.
# vector35 armv7
@ -121,7 +121,7 @@ Open your favourite arm32 binary like this:
> r2 -a arm.v35 -b32 ...
Note that the v35 thumb2 disassembler is written in c++ and it cant be shipped
Note that the v35 thumb2 disassembler is written in c++ and it can't be shipped
in r2core because it violates the 1st rule in r2land, so it may wait for
contributors to rewrite it in plain C.

View File

@ -1,5 +1,5 @@
all:
# must succeess
# must success
sandbox-exec -f radare2.sb /usr/bin/r2 /bin/ls
# must fail
sandbox-exec -f radare2.sb /usr/bin/r2 /bin/md5

View File

@ -73,5 +73,5 @@ Emulation-Transformation:
- when the section does not allow write-access perform Analysis-Transformation, and you're done
- open a new desc with write-permissions, using the malloc-plugin, with the size of vsize
- copy min (size, vsize) bytes fram the desc, that fd referes to, starting at addr, to the new desc, starting at 0x0
- copy min (size, vsize) bytes fram the desc, that fd refers to, starting at addr, to the new desc, starting at 0x0
- create a map with the size of vsize, that maps the new desc to vaddr, starting at 0x0

View File

@ -17,7 +17,7 @@ static const char *help_msg_i[] = {
"ic", "", "List classes, methods and fields (icj for json)",
"ic.", "", "show class and method name in current seek",
"icc", "", "List classes, methods and fields in Header Format",
"icg", " [str]", "List classes as agn/age commands to create class hirearchy graphs (matches str if provided)",
"icg", " [str]", "List classes as agn/age commands to create class hierarchy graphs (matches str if provided)",
"icq", "", "List classes, in quiet mode (just the classname)",
"icqq", "", "List classes, in quieter mode (only show non-system classnames)",
"icl", "", "Show addresses of class and it methods, without names",

View File

@ -19,9 +19,9 @@ Show help prompt
.It Fl s, Cm sandbox
Run in sandbox mode
.It Fl u, Cm httpauth
Enable HTTP Authentification support
Enable HTTP Authentication support
.It Fl t, Cm httpauthfile
user:password authentification file
user:password authentication file
.It Fl p, Cm port Ar PORT
Specify listening port for the agent
.It Fl v

View File

@ -45,7 +45,7 @@ Show usage help message
.It Fl H
List all special env-vars defined by r2pm internally
.It Fl H Ar env-var-name
Show value of given interal environment variable
Show value of given internal environment variable
.It Fl c
Clean the source cache
.El

View File

@ -26,7 +26,7 @@ BuildJobsThrottler(){
FREE_RAM=$(grep MemAvailable /proc/meminfo | sed 's/[^0-9]//g')
DEFAULT_MAX_MEM_PER_JOB=200000
[ -z "${MAX_MEM_PER_JOB}" ] && MAX_MEM_PER_JOB="$DEFAULT_MAX_MEM_PER_JOB" # Defensive, prevent devision by 0
[ -z "${MAX_MEM_PER_JOB}" ] && MAX_MEM_PER_JOB="$DEFAULT_MAX_MEM_PER_JOB" # Defensive, prevent division by 0
# Assuming we may have many 300MB compilation jobs running in parallel
MEM_ALLOWED_JOBS=$((FREE_RAM / MAX_MEM_PER_JOB))

View File

@ -31,7 +31,7 @@ Failure Levels
A test can have one of the following results:
* success: The test passed, and that was expected.
* fixed: The test passed, but failure was expeced.
* fixed: The test passed, but failure was expected.
* broken: Failure was expected, and happened.
* failed: The test failed unexpectedly. This is a regression.

View File

@ -32,7 +32,7 @@ EXPECT=<<EOF
EOF
RUN
NAME=agC function names are resovled properly
NAME=agC function names are resolved properly
FILE=bins/elf/true
CMDS=<<EOF
aaa 2> /dev/null

View File

@ -4172,7 +4172,7 @@ CMDS=ic?~List
EXPECT=<<EOF
| ic List classes, methods and fields (icj for json)
| icc List classes, methods and fields in Header Format
| icg [str] List classes as agn/age commands to create class hirearchy graphs (matches str if provided)
| icg [str] List classes as agn/age commands to create class hierarchy graphs (matches str if provided)
| icq List classes, in quiet mode (just the classname)
| icqq List classes, in quieter mode (only show non-system classnames)
EOF

View File

@ -61,7 +61,7 @@ EXPECT=<<EOF
EOF
RUN
NAME=zsr newname (dupplicated name)
NAME=zsr newname (duplicated name)
FILE=-
CMDS=<<EOF
zs test1

View File

@ -17,7 +17,7 @@ main@global(128, 128) {
.var1 = 4;
.var2 = 8;
// prolematic sizes: 1 2 5 6 9
// problematic sizes: 1 2 5 6 9
write (1, "hello.\n", 7);
write (1, "hello world\n", 12);
.ret = 3;

View File

@ -43,7 +43,7 @@ int int_compare(const void *a, const void *b){
/**
* @brief Tests correct parsing of abbreviations and line information of DWARF3 C binary
*/
bool test_dwarf3_c_basic(void) { // this should work for dwarf2 aswell
bool test_dwarf3_c_basic(void) { // this should work for dwarf2 as well
RBin *bin = r_bin_new ();
RIO *io = r_io_new ();
r_io_bind (io, &bin->iob);
@ -167,7 +167,7 @@ bool test_dwarf3_c_basic(void) { // this should work for dwarf2 aswell
*
*
*/
bool test_dwarf3_cpp_basic(void) { // this should work for dwarf2 aswell
bool test_dwarf3_cpp_basic(void) { // this should work for dwarf2 as well
RBin *bin = r_bin_new ();
RIO *io = r_io_new ();
r_io_bind (io, &bin->iob);
@ -685,7 +685,7 @@ bool test_dwarf3_cpp_many_comp_units(void) {
mu_end;
}
bool test_dwarf_cpp_empty_line_info(void) { // this should work for dwarf2 aswell
bool test_dwarf_cpp_empty_line_info(void) { // this should work for dwarf2 as well
RBin *bin = r_bin_new ();
RIO *io = r_io_new ();
r_io_bind (io, &bin->iob);

View File

@ -9,7 +9,7 @@ bool test_r_io_cache(void) {
mu_assert_false (r_io_cache_at (io, 10), "Cache shouldn't exist at 10");
mu_assert_true (r_io_cache_write (io, 0, (ut8 *)"AAAAA", 5), "Cache write at 0 failed");
mu_assert_true (r_io_cache_write (io, 10, (ut8 *)"BBBBB", 5), "Cache write at 10 failed");
mu_assert_true (r_io_cache_at (io, 0), "Cache should exist at 0 (beggining of cache)");
mu_assert_true (r_io_cache_at (io, 0), "Cache should exist at 0 (beginning of cache)");
mu_assert_true (r_io_cache_at (io, 4), "Cache should exist at 4 (end of cache)");
mu_assert_false (r_io_cache_at (io, 8), "Cache shouldn't exist at 8 (between 2 caches)");
mu_assert_true (r_io_cache_at (io, 12), "Cache should exist at 12 (middle of cache)");
@ -206,7 +206,7 @@ bool test_r_io_priority(void) {
r_io_map_remap (io, map1, 0x1);
r_io_read_at (io, 0, (ut8 *)&buf, 8);
mu_assert_memeq ((ut8 *)&buf, (ut8 *)"\x00\x00\xff\x6f\x90\x90\x6f\x6f", 8, "map1 should have been remapped and partialy hidden");
mu_assert_memeq ((ut8 *)&buf, (ut8 *)"\x00\x00\xff\x6f\x90\x90\x6f\x6f", 8, "map1 should have been remapped and partially hidden");
r_io_open_at (io, "malloc://2", R_PERM_RW, 0644, 0x4);
r_io_open_at (io, "malloc://2", R_PERM_RW, 0644, 0x6);

View File

@ -500,7 +500,7 @@ bool test_r_str_str_xy(void) {
mu_assert_eq (x, 0, "x of fourth occurrence");
mu_assert_eq (y, 2, "y of fourth occurrence");
next = r_str_str_xy (canvas, "World", next, &x, &y);
mu_assert_null (next, "no more occurences");
mu_assert_null (next, "no more occurrences");
mu_end;
}

View File

@ -208,10 +208,10 @@ bool test_r_strbuf_setf(void) {
bool test_r_strbuf_initf(void) {
RStrBuf sb;
const char *s = r_strbuf_initf (&sb, "hmmst, %s was that audial occurence? %d", "wat", 42);
const char *s = r_strbuf_initf (&sb, "hmmst, %s was that audial occurrence? %d", "wat", 42);
mu_assert_notnull (s, "initf return notnull");
mu_assert_ptreq (s, r_strbuf_get (&sb), "initf return");
mu_assert_streq (r_strbuf_get (&sb), "hmmst, wat was that audial occurence? 42", "initf");
mu_assert_streq (r_strbuf_get (&sb), "hmmst, wat was that audial occurrence? 42", "initf");
r_strbuf_fini (&sb);
mu_end;
}