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

Gallopsled / pwntools / 1

20 Aug 2023 06:49PM UTC coverage: 1.309% (-70.3%) from 71.623%
1

push

github

web-flow
plt: remove stale MIPS workaround (#2256)

Fixes #2042

2 of 5878 branches covered (0.03%)

221 of 16886 relevant lines covered (1.31%)

0.03 hits per line

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

0.0
/pwnlib/commandline/common.py
1
import argparse
×
2
import os
×
3
import sys
×
4

5
import pwnlib
×
6
from pwnlib.context import context
×
7

8
choices = list(map(str, [16,32,64]))
×
9
choices += list(context.oses)
×
10
choices += list(context.architectures)
×
11
choices += list(context.endiannesses)
×
12

13
def context_arg(arg):
×
14
    try: context.arch = arg
×
15
    except Exception: pass
×
16
    try: context.os = arg
×
17
    except Exception: pass
×
18
    try: context.bits = int(arg)
×
19
    except Exception: arg
×
20
    try: context.endian = arg
×
21
    except Exception: pass
×
22
    return arg
×
23

24
parser = argparse.ArgumentParser(description='Pwntools Command-line Interface',
×
25
                                 prog='pwn')
26
parser_commands = parser.add_subparsers(dest='command')
×
27

28
def main(file=sys.argv[0]):
×
29
    import pwnlib.commandline.main
×
30
    name = os.path.splitext(os.path.basename(file))[0]
×
31
    sys.argv.insert(1, name)
×
32
    pwnlib.commandline.main.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