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

Gallopsled / pwntools / 1

28 Jan 2022 10:58AM UTC coverage: 0.0% (-73.8%) from 73.823%
1

push

github

web-flow
Fix CI after Groovy Gorilla went away for libc unstrip test (#2025)

* Fix CI after Groovy Gorilla went away for libc unstrip test

Build elfutils 0.181 from source since we can't use builds
from a newer ubuntu version anymore.

* Install python wheels in CI

0 of 1 new or added line in 1 file covered. (0.0%)

13713 existing lines in 142 files now uncovered.

0 of 16559 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):
×
UNCOV
14
    try: context.arch = arg
×
UNCOV
15
    except Exception: pass
×
UNCOV
16
    try: context.os = arg
×
UNCOV
17
    except Exception: pass
×
UNCOV
18
    try: context.bits = int(arg)
×
UNCOV
19
    except Exception: arg
×
UNCOV
20
    try: context.endian = arg
×
UNCOV
21
    except Exception: pass
×
UNCOV
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]):
×
UNCOV
29
    import pwnlib.commandline.main
×
UNCOV
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