Skip to content

Commit 3f28855

Browse files
committed
fix typos treewide
1 parent 283a7f6 commit 3f28855

File tree

10 files changed

+19
-19
lines changed

10 files changed

+19
-19
lines changed

docs/api/gef.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ register_architecture(
11561156
```
11571157

11581158
`register_architecture` is **DEPRECATED** and will be removed in the future.
1159-
Using the decorator `register_architecture` is unecessary
1159+
Using the decorator `register_architecture` is unnecessary
11601160

11611161

11621162
---
@@ -7576,7 +7576,7 @@ usage() → None
75767576
---
75777577

75787578
## <kbd>class</kbd> `GefTmuxSetup`
7579-
Setup a confortable tmux debugging environment.
7579+
Setup a comfortable tmux debugging environment.
75807580

75817581
<a href="https://cs.github.com/hugsy/gef?q=GefTmuxSetup.__init__"><img align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square"></a>
75827582

docs/commands/config.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gef➤ gef config pcustom.struct_path
1919
```
2020

2121
Of course you can edit the values. For example, if you want the screen to be cleared before
22-
displaying the current context when reaching a breakpoing:
22+
displaying the current context when reaching a breakpoint:
2323

2424
```text
2525
gef➤ gef config context.clear_screen 1

docs/commands/dereference.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
The `dereference` command (also aliased `telescope` for PEDA former users) aims to simplify the
44
dereferencing of an address in GDB to determine the content it actually points to.
55

6-
It is a useful convienence function to spare to process of manually tracking values with successive
6+
It is a useful convenience function to spare to process of manually tracking values with successive
77
`x/x` in GDB.
88

99
`dereference` takes three optional arguments, a start address (or symbol or register, etc) to

docs/commands/gef-remote.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[`target remote`](https://sourceware.org/gdb/onlinedocs/gdb/Remote-Debugging.html#Remote-Debugging)
44
is the traditional GDB way of debugging process or system remotely. However this command by itself
5-
does a limited job (80's bandwith FTW) to collect more information about the target, making the
5+
does a limited job (80's bandwidth FTW) to collect more information about the target, making the
66
process of debugging more cumbersome. GEF greatly improves that state with the `gef-remote` command.
77

88
📝 **Note**: If using GEF, `gef-remote` **must** be your way or debugging remote processes, never

docs/commands/gef.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,5 +141,5 @@ different branch through the `gef.default_branch` configuration setting:
141141
gef➤ gef config gef.default_branch my_other_branch
142142
```
143143

144-
The files will be dowloaded in the path configured in the `gef.extra_plugins_dir` setting, allowing
144+
The files will be downloaded in the path configured in the `gef.extra_plugins_dir` setting, allowing
145145
to reload it easily without having to re-download.

docs/commands/heap-analysis-helper.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gef➤ heap-analysis
1919
[+] Tracking malloc()
2020
[+] Tracking free()
2121
[+] Disabling hardware watchpoints (this may increase the latency)
22-
[+] Dynamic breakpoints correctly setup, GEF will break execution if a possible vulnerabity is found.
22+
[+] Dynamic breakpoints correctly setup, GEF will break execution if a possible vulnerability is found.
2323
[+] To disable, clear the malloc/free breakpoints (`delete breakpoints`) and restore hardware breakpoints (`set can-use-hw-watchpoints 1`)
2424
```
2525

docs/commands/memory.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ register addresses, lengths, and grouping size.
55

66
![memory watch](https://i.imgur.com/NXYwSwW.png)
77

8-
_Note_: this command **shoud NOT** be mistaken with the [GDB `watch`
8+
_Note_: this command **should NOT** be mistaken with the [GDB `watch`
99
command](https://sourceware.org/gdb/current/onlinedocs/gdb/Set-Watchpoints.html) meant to set
1010
breakpoints on memory access (read,write,exec).
1111

gef.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -2329,7 +2329,7 @@ def get_zone_base_address(name: str) -> int | None:
23292329
# Architecture classes
23302330
#
23312331

2332-
@deprecated("Using the decorator `register_architecture` is unecessary")
2332+
@deprecated("Using the decorator `register_architecture` is unnecessary")
23332333
def register_architecture(cls: Type["Architecture"]) -> Type["Architecture"]:
23342334
return cls
23352335

@@ -2480,7 +2480,7 @@ def endianness(self) -> Endianness:
24802480
elif "big endian" in output:
24812481
self._endianness = Endianness.BIG_ENDIAN
24822482
else:
2483-
raise OSError(f"No valid endianess found in '{output}'")
2483+
raise OSError(f"No valid endianness found in '{output}'")
24842484
return self._endianness
24852485

24862486
def get_ith_parameter(self, i: int, in_func: bool = True) -> tuple[str, int | None]:
@@ -6046,7 +6046,7 @@ class SearchPatternCommand(GenericCommand):
60466046
_example_ = [f"{_cmdline_} AAAAAAAA",
60476047
f"{_cmdline_} 0x555555554000 little stack",
60486048
f"{_cmdline_} AAAA 0x600000-0x601000",
6049-
f"{_cmdline_} --regex 0x401000 0x401500 ([\\\\x20-\\\\x7E]{{2,}})(?=\\\\x00) <-- It matchs null-end-printable(from x20-x7e) C strings (min size 2 bytes)"]
6049+
f"{_cmdline_} --regex 0x401000 0x401500 ([\\\\x20-\\\\x7E]{{2,}})(?=\\\\x00) <-- It matches null-end-printable(from x20-x7e) C strings (min size 2 bytes)"]
60506050

60516051
def __init__(self) -> None:
60526052
super().__init__()
@@ -9691,7 +9691,7 @@ def setup(self) -> None:
96919691
gdb.execute("set can-use-hw-watchpoints 0")
96929692

96939693
info("Dynamic breakpoints correctly setup, "
9694-
"GEF will break execution if a possible vulnerabity is found.")
9694+
"GEF will break execution if a possible vulnerability is found.")
96959695
warn(f"{Color.colorify('Note', 'bold underline yellow')}: "
96969696
"The heap analysis slows down the execution noticeably.")
96979697

@@ -10000,13 +10000,13 @@ def load_plugin(fpath: pathlib.Path) -> bool:
1000010000

1000110001
def load_plugins_from_directory(plugin_directory: pathlib.Path):
1000210002
nb_added = -1
10003-
nb_inital = len(__registered_commands__)
10003+
nb_initial = len(__registered_commands__)
1000410004
start_time = time.perf_counter()
1000510005
for entry in plugin_directory.glob("**/*.py"):
1000610006
load_plugin(entry)
1000710007

1000810008
try:
10009-
nb_added = len(__registered_commands__) - nb_inital
10009+
nb_added = len(__registered_commands__) - nb_initial
1001010010
if nb_added > 0:
1001110011
self.load()
1001210012
nb_failed = len(__registered_commands__) - len(self.commands)
@@ -10733,7 +10733,7 @@ def reset_caches(self) -> None:
1073310733
continue
1073410734
obj.cache_clear()
1073510735
except Exception:
10736-
# we're reseting the cache here, we don't care if (or which) exception triggers
10736+
# we're resetting the cache here, we don't care if (or which) exception triggers
1073710737
continue
1073810738
return
1073910739

@@ -10972,7 +10972,7 @@ def parse_monitor_info_mem() -> Generator[Section, None, None]:
1097210972
@staticmethod
1097310973
def parse_gdb_maintenance_info_sections() -> Generator[Section, None, None]:
1097410974
"""Get the memory mapping from GDB's command `maintenance info sections` (limited info). In some cases (i.e. coredumps),
10975-
the memory info collected by `info proc sections` is insufficent."""
10975+
the memory info collected by `info proc sections` is insufficient."""
1097610976
stream = StringIO(gdb.execute("maintenance info sections", to_string=True))
1097710977

1097810978
for line in stream:

scripts/new-release.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
"""
44
Small script to generate the changelog for a new release. It uses information from
5-
both git and Github to create teh changelog in Markdown, which can be simply copy/pasted
5+
both git and Github to create the changelog in Markdown, which can be simply copy/pasted
66
to the Github release page.
77
88
The script requires a Github token to be set in the environment variable `GITHUB_REPO_TOKEN`.

tests/utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def findlines(substring: str, buffer: str) -> List[str]:
213213

214214
def removeafter(substring: str, buffer: str, included: bool = False) -> str:
215215
"""Returns a copy of `buffer` truncated after `substring` is found. If
216-
`included` is True, the result also includes the subtring.
216+
`included` is True, the result also includes the substring.
217217
218218
Args:
219219
substring (str)
@@ -235,7 +235,7 @@ def removeafter(substring: str, buffer: str, included: bool = False) -> str:
235235

236236
def removeuntil(substring: str, buffer: str, included: bool = False) -> str:
237237
"""Returns a copy of `buffer` truncated until `substring` is found. If
238-
`included` is True, the result also includes the subtring.
238+
`included` is True, the result also includes the substring.
239239
240240
Args:
241241
substring (str)

0 commit comments

Comments
 (0)