Benign python Download

httpagentparser 1.9.0

“Extracts OS Browser etc information from http user agent string”

Root Python setup.py packaging filePackaging setup API import or call

Evidence

Telegram Bot API User-Agent token __init__.py · lines 267–289
⋯7 lines
274 bot = True
275
276class TelegramBot(Browser):
277 look_for = "TelegramBot"
278 bot = True
⋯11 lines
imports httpagentparser as hap more.py · lines 1–5
1import httpagentparser as hap
2
3class JakartaHTTPClinet(hap.Browser):
4 name = 'Jakarta Commons-HttpClient'
5 look_f …
Python requests User-Agent more.py · lines 9–29
9:23… uests'
10 look_for = 'python-requests'
11
12# Registering new UAs
13
14hap.detectorshub.register(JakartaHTTPClinet())
15hap.detectorshub.register(PythonRequests())
16
17# Tests
⋯6 lines
24 print(hap.simple_detect(s))
25
26 s = 'python-requests/1.2.3 CPython/2.7.4 Linux/3.8.0-29-generic'
27
28 print(hap.detect(s))
29 print(hap.simple_detect(s))
Code embeds cleartext HTTP URL literal setup.py · lines 28–53
⋯5 lines
33 args = self.tox_args
34 if args:
35 args = shlex.split(self.tox_args)
36 errno = tox.cmdline(args=args)
37 sys.exit(errno)
38
39
40for line in open('httpagentparser/__init__.py'):
41 if line.startswith('__version__'):
42 version = line.split('=')[-1].strip()[1:-1]
43 break
44
45setup(
46 name='httpagentparser',
47 version=version,
48 url="http://shon.github.com/httpagentparser",
49 classifiers=[
50 'Programming Language :: Python :: 3'
51 ],
52 include_package_data=True,
53 description='Ex …
Generic email address setup.py · lines 53–63
53:62… p user agent string',
54 long_description=open('README.rst').read(),
55 packages=find_packages(),
56 author='Shekhar Tiwatne',
57 author_email='[email protected]',
58 license="http://www.opensource.org/licenses/mit-license.php",
59 test_suite="tests",
60 tests_require=['tox'],
61 cmdclass={'test': Tox},
62 )
63

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.