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

Gallopsled / pwntools / 8912ca5a8c3a9725c3ba6d30561607150a6faebe-PR-2205

pending completion
8912ca5a8c3a9725c3ba6d30561607150a6faebe-PR-2205

Pull #2205

github-actions

web-flow
Merge 81f463e2c into 8b4cacf8b
Pull Request #2205: Fix stable Python 2 installation from a built wheel

3878 of 6371 branches covered (60.87%)

12199 of 16604 relevant lines covered (73.47%)

0.73 hits per line

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

0.0
/pwnlib/gdb_faketerminal.py
1
#!/usr/bin/env python
2
from pwnlib.tubes.process import process
×
3
from time import sleep
×
4
from sys import argv
×
5
from os import environ
×
6
sleep(1)
×
7
if len(argv) == 2:
×
8
    sh = process(argv[1], shell=True, timeout=30)
×
9
else:
10
    sh = process(argv[1:], timeout=30)
×
11
sh.sendline('set prompt (gdb)')
×
12
if environ.get('GDB_FAKETERMINAL') == '0':
×
13
    sh.sendline('set pagination off')
×
14
    sh.recvall()
×
15
else:
16
    res = sh.sendlineafter('(gdb)', 'c')
×
17
    while res and b'The program is not being run.' not in res:
×
18
        res = sh.sendlineafter('(gdb)', 'c')
×
19
sh.close()
×
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