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

UNCOV
5
import os
×
UNCOV
6
import subprocess
×
7

UNCOV
8
import pwnlib.args
×
UNCOV
9
pwnlib.args.free_form = False
×
10

UNCOV
11
from pwn import *
×
UNCOV
12
from pwnlib.commandline import common
×
13

UNCOV
14
parser = common.parser_commands.add_parser(
×
15
    'version',
16
    help = 'Pwntools version',
17
    description = 'Pwntools version'
18
)
19

UNCOV
20
def main(a):
×
21
        version = pwnlib.version
×
22

23
        git_root = os.path.dirname(os.path.dirname(os.path.dirname(__file__)))
×
24
        if os.path.exists(os.path.join(git_root, '.git')):
×
25
                gitver = subprocess.check_output(['git', '-C', git_root, 'log', '-1', '--format=%h (%cr)'])
×
26
                branch = subprocess.check_output(['git', '-C', git_root, 'rev-parse', '--abbrev-ref', 'HEAD'])
×
27
                version = '%s-%s-%s' % (version, branch.decode().strip(), gitver.decode())
×
28

29
        log.info("Pwntools v%s" % version)
×
30

UNCOV
31
if __name__ == '__main__':
×
32
    pwnlib.commandline.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