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

Gallopsled / pwntools / 3e4e8b70558ee5adb522415f07483b2f72fe0b96
19%

Build:
DEFAULT BRANCH: dev
Ran 26 Jul 2023 12:06PM UTC
Jobs 2
Files 149
Run time 4s
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

pending completion
3e4e8b70558ee5adb522415f07483b2f72fe0b96

push

github-actions

web-flow
Add `--libc libc.so` argument to pwn template (#2212)

* Add ELF.set_runpath()

Shells out to the `patchelf` tool to patch the ELF's RUNPATH. This lets the dynamic loader look for needed shared libraries in the given path first before the system libraries when running the binary.

* Add ELF.set_interpreter()

Shells out to the `patchelf` tool to patch the ELF's PT_INTERP segment. This allows to change the ld.so used when running the binary.

* Add convenience wrapper to set runpath & interpreter

A helper function to patch the ELF such that it uses the dynamic loader and other libraries in the given folder.

* Add method to download libraries matching a libc

Download the matching libraries for the given libc binary and cache them in a local directory using `libcdb.download_libraries()`. The libraries are looked up using libc.rip and fetched from the official package repositories if available.

Only .deb and .pkg.tar.* packages are currently supported (Debian/Ubuntu, Arch).

* Add --libc argument to pwnup template

This generates code into the template which allows you to run the binary using the given libc.

The foreign libc is used by default, but you can choose to run the binary against your system's local libc using the `LOCAL_LIBC` command line argument when executing the exploit script.

* Work around Python 2 tarfile not supporting xz

* Fix crash when libc wasn't found on libc.rip

* Update README

* Use subprocess.check_output instead of pwnlib.process

* Special case Python 2 instead of 3

* Only catch Exceptions instead of everything

Co-authored-by: Arusekk <arek_koz@o2.pl>

* Check launchpad.net for Ubuntu libcs

This mimics the way io12/pwninit obtains the ld.so.
If the download from libc.rip fails, try launchpad.net.

* Hide comment in template when --quiet

* Please confused pylint in PY2 context

Co-authored-by: Arusekk <arek_koz@o2.pl>

---------

Co-authored-by: Arusekk <arek_koz@o2.pl>

3806 of 6339 branches covered (60.04%)

206 of 206 new or added lines in 3 files covered. (100.0%)

12369 of 16857 relevant lines covered (73.38%)

1.47 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
11
80.91
-0.03% pwnlib/elf/elf.py
58
72.7
-4.57% pwnlib/libcdb.py

Uncovered Existing Lines

Lines Coverage ∆ File
1
77.78
2.78% pwnlib/atexit.py
1
71.15
-1.92% pwnlib/commandline/asm.py
1
79.25
-1.89% pwnlib/commandline/cyclic.py
1
96.0
-4.0% pwnlib/commandline/hex.py
1
84.88
-0.58% pwnlib/commandline/shellcraft.py
1
72.73
-4.2% pwnlib/filesystem/path.py
1
0.0
0.0% pwnlib/gdb_api_bridge.py
1
76.92
-0.06% pwnlib/log.py
1
78.57
-3.25% pwnlib/qemu.py
1
88.72
-0.06% pwnlib/rop/rop.py
1
43.16
-1.05% pwnlib/term/keymap.py
1
68.88
-0.81% pwnlib/tubes/process.py
1
86.89
-0.75% pwnlib/util/crc/__init__.py
1
96.45
-0.69% pwnlib/util/cyclic.py
1
97.62
21.43% pwnlib/util/safeeval.py
1
73.21
-0.89% pwnlib/util/sh_string.py
2
22.61
-5.23% pwnlib/adb/adb.py
2
92.68
-1.5% pwnlib/encoders/i386/ascii_shellcode.py
2
53.33
-6.67% pwnlib/internal/dochelper.py
2
24.47
0.23% pwnlib/term/readline.py
3
91.67
-2.98% pwnlib/shellcraft/internal.py
3
87.37
-3.35% pwnlib/term/text.py
4
75.77
-1.04% pwnlib/elf/corefile.py
4
81.25
-1.21% pwnlib/filesystem/ssh.py
4
28.7
-4.43% pwnlib/protocols/adb/__init__.py
4
91.71
-1.1% pwnlib/util/fiddling.py
5
42.11
-13.16% pwnlib/atexception.py
5
68.66
-1.05% pwnlib/tubes/ssh.py
6
66.32
-0.76% pwnlib/term/term.py
10
84.13
-8.0% pwnlib/shellcraft/__init__.py
10
75.98
-1.96% pwnlib/util/packing.py
11
76.43
-2.3% pwnlib/tubes/tube.py
Jobs
ID Job ID Ran Files Coverage
1 3e4e8b70558ee5adb522415f07483b2f72fe0b96.1 26 Jul 2023 12:06PM UTC 149
73.36
2 3e4e8b70558ee5adb522415f07483b2f72fe0b96.2 26 Jul 2023 06:00PM UTC 149
73.38
Source Files on build 3e4e8b70558ee5adb522415f07483b2f72fe0b96
  • Tree
  • List 149
  • Changed 64
  • Source Changed 0
  • Coverage Changed 144
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 3e4e8b70 on github
  • Prev Build on dev (#5648001150)
  • Next Build on dev (#5668434719)
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

© 2026 Coveralls, Inc