Commit Graph
2393 Commits
Author SHA1 Message Date
crazy hugsy 5d49c227da Added docs to debug using VSCode (#995)
This PR adds the documentation to use VSCode as a source debugging
platform for GEF.

It also fixes the PR template MD file, which had a non-terminated HTML
comment tag.
2023.08
2023-08-20 19:06:41 -07:00
Grazfather 9f7936389c Fix context regs regression that broke reg order (#993)
Fixes a bug I added in #972 which lost the order of registers
Fixes #986
2023-08-16 09:54:59 -07:00
crazy hugsy 67c363dea3 [CI] Use pull_request_target for coverage trigger (#990)
Purely CI PR: use `pull_request_target` with custom permission to ensure external PRs can still trigger the coverage script.
2023-08-16 07:34:30 -07:00
Dreg 371f273017 [CI] Add forbidden words checks to coverage action (#991)
Add forbidden words checks to coverage.yml action to ensure some patterns are never found in gef.py
2023-08-16 07:33:58 -07:00
Dreg d27efd3b90 Add debugging instructions (#985)
Add debugging instructions: pycharm + pdb
2023-08-14 12:48:04 -07:00
crazy hugsy 7c170cf6be Setup pre-commit for GEF (#984)
This PR adds `pre-commit` to facilitate and unify the formatting of
everything in this project (code, test, docs, ci).

Aside from `.pre-commit-config.yml` and `docs/.markdownlint.yaml`, all
the other changes are purely cosmetic, applying markdownlint and fixing
here and there to make it pass.

It also creates a new CI job that'll simply execute `pre-commit` for new
PRs.
2023-08-07 16:36:33 -07:00
crazy hugsy 878cbf2297 Switch dev refs to main (#982)
Removed all references to the dev branch from scripts, docs and tests.
2023-08-07 11:26:41 -07:00
crazy hugsy 8f0f4443bd Restore main as the default branch (#983)
This PR does not include any code change, it simply applies all the
latest changes pushed to dev recently to main as we go ahead and make
main the default branch.

In addition, gef-extras will also now have releases happening at the
same time as gef. This should facilitate the sync between both projects.
2023-08-06 09:26:39 -07:00
crazy hugsy a825c8413d [ci] Upgrade notification actions (#981)
This PR modifies the content of Discord notification generated by the GActions. It also adds minor formatting additions.
2023-08-05 13:31:56 -07:00
Dreg 51804c8b40 Fixed phrasing in docs (#980)
under license mit -> under mit license
2023-08-02 07:54:38 -07:00
Dreg ea7ed49daa Fix link in testing docs (#979) 2023-08-02 07:49:51 -07:00
crazy hugsy 5e23739362 [Docs] Added linting for markdown files (#977)
* adding a note about required common bins (issue #973)

* added markdownlint policy

* applied markdownlint

* customized mdlint config
2023-08-01 20:14:57 -07:00
crazy hugsy b57e174deb Minor additions to the documentation (#975)
* added more references to gef-extras

* adding a note about required common bins (issue #973)

* applied `markdownlint`

* manual markdownl formatting
2023-07-31 20:09:52 -07:00
Grazfather 27a29d9685 Reformat README (#976) 2023-07-30 08:47:32 -07:00
crazy hugsy 0461d6fe6e Fix hardcoded NOP instructions for ARM/AARCH64 (#971)
* fix nop insn of arm & arm64 to `hint #0`

* `gef.memory.write` should take an optional param for length

* [gef] fixed off by one in gdb_get_nth_next_instruction_address for fixed insn size archs

* replicate error message change to tests

* deprecating `gdb_get_nth_next_instruction_address()` in favor `gef_instruction_n()`

* bit more type hinting
2023-07-22 16:31:05 -07:00
crazy hugsy e529fbcb6c Restore autosave_breakpoints_file behavior (#969)
* Fixes #965

* Also changes the dates 2022 -> 2023
2023-07-22 08:58:25 -07:00
Grazfather 81ee52d320 Small cleanup - sets (#972) 2023-07-22 08:52:02 -07:00
Grazfather 9170ac0a8d nop: Add force req when not already --f (#970) 2023-07-21 13:31:33 -07:00
Dreg 99c59a9057 adjust the behavior (and options) for the nop command (#967) 2023-07-21 13:03:21 -07:00
Dreg b0f4fa972d add site/ directory generated by mkdocs to .gitignore (#968) 2023-07-21 12:48:00 -07:00
crazy hugsy b2d3edc4af Update coverage.yml 2023-07-21 12:45:13 -07:00
Dreg 577ad02fd8 Add skipi command to skip N instructions (#964) 2023-07-19 08:31:18 -07:00
Grazfather 7fd94ab532 Wrap docs (#962)
* Wrap docs to 100 columns

* Add editorconfig for markdown
2023-07-18 11:02:08 -07:00
Grazfather ca7418c912 nop: Fix off-by-one in unmap check (#960) 2023-07-13 18:30:49 -07:00
Dreg 74e862628a Update nop command to patch entire instructions (#959)
* The default behavior to `nop` is to patch entire instruction(s) unless indicated otherwise via the `--b` toggle
* `--n` can be used to specify the number of nops to insert
2023-07-13 14:10:07 -07:00
crazy hugsy 0fd751ec15 Update README.md
Updated Discord invite link
2023-05-29 08:02:01 -07:00
crazy hugsy 91f4d708d6 [docs] Regenerating api/gef.md (#951)
* [scripts] make  `new-release` get the latest tags

* Re-generating `gef.md`
Fixes #950
2023-05-27 13:07:08 -07:00
Alexander Zhang 102288fd3e Update sentence about Python version in docs (#948)
Python 2 is no longer supported and can only be used with gef-legacy.
2023-04-25 08:56:02 -07:00
crazy hugsy ac732170ba [ci] coverage use dedicated token 2023-04-24 08:38:03 -07:00
Alexander Zhang a6f4cc186a Fix typo in docs (#949) 2023-04-22 10:44:56 -04:00
hugsy a85368fc77 [scripts] make new-release get the latest tags 2023.06 2023-04-16 10:05:55 -07:00
hugsy 5040cbe346 [scripts] add an explicit error message on failures in new-release 2023-04-16 09:38:06 -07:00
hugsy 18e2c9cdb7 [docs] better formatting for settings page 2023-04-16 09:33:41 -07:00
crazy hugsy b1a1b2aa8b [CI] Make coverage generate pull request comment instead of blocking validation (#938)
* [ci] moved coverage to dedicated file

* squashed test commits
2023-04-16 09:14:09 -07:00
crazy hugsy 9848239124 Minor typo in docs/generate-settings-docs.sh 2023-04-15 18:19:02 -07:00
Tramadol 0f477e74e2 Add backwards memory examination for the dereference command (#942)
* Add backwards memory examination for the dereference command

* Removing duplicate code & adding tests

* Ensuring that the tests always run against the default config

* Removing unnecessary prints

* Cleanup tests & removing unnecessary zero
2023-04-04 19:33:14 -07:00
theguy147 0cf291df01 fix: add capability to glibc heap commands for bruteforcing the main_arena (#932)
* fix: add capability to glibc heap commands for bruteforcing the main_arena

* fix: remove debugging artifact

* fix: display correct chunks for each arena

* fix: remove lru_cache for staticmethods

* feat: add configs to better find the main_arena

* fix: clean up minor issues

* feat: add newly added configs to documentation

* feat: add newly added configs to documentation (2)

* fix: remove unnecessary if's

* feat: add 0x60 explanation

* try: re-add lru_cache annotations

* fix: remove assertion

* fix: remove another unnecessary if
2023-03-21 08:04:28 -07:00
theguy147 8e3eba89a2 fix: make sure that heap_addr is aligned (#936) 2023-03-19 07:05:29 -07:00
crazy hugsy 9590305404 Don't error out if disassembling previous instructions fails (#931)
* minor linting stuff

* fix #922 + add regression test

* [ci] change the coverage change tolerance to 1%
2023-03-12 18:35:08 -07:00
crazy hugsy 174830a86d Fixed doc wording 2023-01-02 09:24:35 -08:00
clubby789 d1833d3100 Fix searching when connected to qemu-system instance (#906)
* Fix searching when connected to `qemu-system` instance

* Fix Qemu user/kernel mode detection

* Properly save offset as int

* Update styling

* Fix single quotes

* Change remote initializing check

* Style changes and parsing unit test
2022-11-22 21:16:34 -08:00
hugsy 4e8903400e [ci] increased delay to appease GHActions gods 2022-11-17 14:09:57 -08:00
crazy hugsy 05b17d0b69 [ci] add delay to gdbserver_session
Force delay to let gdbserver spawn correct and start listening to the tcp port
2022-11-17 13:49:02 -08:00
clubby789 63ac481edd Determine the actual canary location (#918)
* Determine the actual canary location when possible

* Fix canary test

* Test changes and small refactoring
2022-11-17 08:35:16 -08:00
clubby789 75c76fec34 Add option to disable buffering (#917) 2022-11-12 18:09:17 -08:00
hugsy af63b4d365 rewrite: generate settings documentation 2022-11-11 14:38:41 -08:00
hugsy 8713e3f945 Merge branch 'dev' of github.com:hugsy/gef into dev 2022-11-11 11:59:21 -08:00
crazy hugsy 1bf74a82a7 [CI] Refusing anything below 70% of coverage 2022-11-07 22:54:08 -08:00
crazy hugsy ec83f445b7 fixed error from #902 2022-11-07 22:39:37 -08:00
Jonathan SalwanandGrazfather ea8273b032 Fix shell-storm new API (#902)
* Fix shell-storm new API

* Update gef.py

Co-authored-by: Grazfather <[email protected]>
2022-11-07 22:12:06 -08:00