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

Gallopsled / pwntools / 20398118038

20 Dec 2025 06:07PM UTC coverage: 73.87% (+73.9%) from 0.0%
20398118038

push

github

web-flow
Bump actions/download-artifact from 6 to 7 (#2659)

Bumps [actions/download-artifact](https://github.com/actions/download-artifact) from 6 to 7.
- [Release notes](https://github.com/actions/download-artifact/releases)
- [Commits](https://github.com/actions/download-artifact/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/download-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

3844 of 6484 branches covered (59.28%)

13471 of 18236 relevant lines covered (73.87%)

0.74 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

59.09
/pwnlib/commandline/elfpatch.py
1
from __future__ import absolute_import
1✔
2
from __future__ import division
1✔
3

4
import sys
1✔
5

6
import pwnlib.args
1✔
7
pwnlib.args.free_form = False
1✔
8

9
from pwn import *
1✔
10
from pwnlib.commandline import common
1✔
11

12
p = common.parser_commands.add_parser(
1✔
13
    'elfpatch',
14
    help = 'Patch an ELF file',
15
    description = 'Patch an ELF file'
16
)
17

18
p.add_argument('elf',help="File to patch")
1✔
19
p.add_argument('offset',help="Offset to patch in virtual address (hex encoded)")
1✔
20
p.add_argument('bytes',help='Bytes to patch (hex encoded)')
1✔
21

22

23
def main(a):
1✔
24
    if not a.offset.startswith('0x'):
×
25
        a.offset = '0x' + a.offset
×
26

27
    offset = int(a.offset, 16)
×
28
    bytes  = unhex(a.bytes)
×
29

30
    with context.silent:
×
31
        elf    = ELF(a.elf)
×
32

33
    elf.write(offset, bytes)
×
34
    getattr(sys.stdout, 'buffer', sys.stdout).write(elf.get_data())
×
35

36
if __name__ == '__main__':
1!
37
    pwnlib.commandline.common.main(__file__, main)
×
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