• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Gallopsled / pwntools / 11096422461
19%

Build:
DEFAULT BRANCH: dev
Ran 29 Sep 2024 10:36PM UTC
Jobs 1
Files 151
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Sep 2024 10:27PM UTC coverage: 73.91% (-0.04%) from 73.954%
11096422461

push

github

web-flow
Fix waiting for gdb under WSL2 (#2470)

* Fix returning wrong pid in WSL for run_in_new_terminal

We run cmd.exe which and other Windows processes before going back into WSL. The returned pid would be the one for the ephemeral cmd.exe process instead of the real command we wanted to launch.

I don't know how to properly trace the execution and get the command pid, so scan for newer pids matching the command for a while instead as a workaround.

We wrap the command in a script so psutil.Process.exe() returns the path to the shell instead of the real command. Look at psutil.Process.cmdline() too which contains the real program running right now.

* Make `proc.wait_for_debugger` return the debugger pid

If we fail to get the pid when launching gdb, grab it after tracing the debugger at least. gdb won't be closed when the exploit exits but at least we have the correct pid.

* Fix working directory of run_in_new_terminal in WSL

The process' cwd would be %WINDIR% due to cmd.exe not supporting WSL paths.

* Update CHANGELOG

4555 of 7411 branches covered (61.46%)

10 of 23 new or added lines in 3 files covered. (43.48%)

13244 of 17919 relevant lines covered (73.91%)

0.74 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
72.22
0.07% pwnlib/util/proc.py
12
60.52
-1.72% pwnlib/util/misc.py
Jobs
ID Job ID Ran Files Coverage
1 11096422461.1 29 Sep 2024 10:36PM UTC 151
73.91
GitHub Action Run
Source Files on build 11096422461
  • Tree
  • List 151
  • Changed 2
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • fa5a288a on github
  • Prev Build on dev (#11096375815)
  • Next Build on dev (#11096528464)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc