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

Gallopsled / pwntools / 1399c7a9698f27361c5175424557fd4e3c65948f
19%

Build:
DEFAULT BRANCH: dev
Ran 09 Jul 2023 08:08PM UTC
Jobs 1
Files 149
Run time 2s
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
1399c7a9698f27361c5175424557fd4e3c65948f

push

github-actions

web-flow
Shellcraft stackargs (#2219)

From: Peace-Maker <peace-maker@wcfan.de>

* Shellcraft: Fix spilling syscall args to the stack

There was a typo in the generated syscall template causing only the last
stack argument to be generated.

$ shellcraft -f asm mips.linux.sendto 3 0x123456 0x100 0 0xabcdefff 0x10
The 0xabcdefff argument was missing.

* Shellcraft: Generate 6 syscall arguments for unknown functions

There are syscalls with 6 arguments like mmap and sendto which couldn't
be called with all 6 arguments set.

$ shellcraft -f asm mips.linux.mmap2 0 0x1000
'PROT_READ | PROT_WRITE | PROT_EXEC' 'MAP_PRIVATE | MAP_ANONYMOUS' -1 0

* Shellcraft: Fix typo in error message

The `syscalls` variable is only present in the generate.py, not the
generated template.

* Regenerate syscall templates

* MIPS shellcraft: Push last two syscall arguments to the stack

The mips.linux.syscall template was only handling 4 syscall arguments
and silently discarded the remaining ones. Push the arguments to the stack
instead.

$ shellcraft -f asm mips.linux.syscall SYS_sendto 3 0x123456 0x100 0 0xabcdefff 0x10

Fixes #2153

* Fix mips syscall doctest

* Update CHANGELOG

Co-authored-by: Peace-Maker <peace-maker@wcfan.de>

3905 of 6420 branches covered (60.83%)

12261 of 16706 relevant lines covered (73.39%)

0.73 hits per line

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.44% pwnlib/log.py
1
78.57
-3.25% pwnlib/qemu.py
1
87.61
-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 1399c7a9698f27361c5175424557fd4e3c65948f.1 09 Jul 2023 08:08PM UTC 149
73.39
Source Files on build 1399c7a9698f27361c5175424557fd4e3c65948f
  • Tree
  • List 149
  • Changed 62
  • Source Changed 0
  • Coverage Changed 62
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • 1399c7a9 on github
  • Prev Build on dev (#5501563021)
  • Next Build on dev (#83E19216...)
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