• 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/hex.py
1
#!/usr/bin/env python2
UNCOV
2
from __future__ import absolute_import
×
UNCOV
3
from __future__ import division
×
4

UNCOV
5
import argparse
×
UNCOV
6
import sys
×
7

UNCOV
8
from pwnlib.commandline import common
×
UNCOV
9
from pwnlib.util.fiddling import enhex
×
10

UNCOV
11
parser = common.parser_commands.add_parser(
×
12
    'hex',
13
    help = 'Hex-encodes data provided on the command line or stdin',
14
    description = 'Hex-encodes data provided on the command line or stdin')
15

UNCOV
16
parser.add_argument('data', nargs='*',
×
17
    help='Data to convert into hex')
18

UNCOV
19
def main(args):
×
UNCOV
20
    if not args.data:
×
UNCOV
21
        print(enhex(getattr(sys.stdin, 'buffer', sys.stdin).read()))
×
22
    else:
UNCOV
23
        data = ' '.join(args.data)
×
UNCOV
24
        if not hasattr(data, 'decode'):
×
UNCOV
25
            data = data.encode('utf-8', 'surrogateescape')
×
UNCOV
26
        print(enhex(data))
×
27

UNCOV
28
if __name__ == '__main__':
×
UNCOV
29
    common.main(__file__)
×
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