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

Gallopsled / pwntools / 1

29 May 2020 09:05AM UTC coverage: 0.0% (-72.4%) from 72.414%
1

push

github

layderv
__str__ to __bytes__ in python2

0 of 8 new or added lines in 2 files covered. (0.0%)

11301 existing lines in 133 files now uncovered.

0 of 15497 relevant lines covered (0.0%)

0.0 hits per line

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

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

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

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

UNCOV
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

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

UNCOV
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