From b467fef84c7c8de4ecc4d5fab8681b3dac8d620f Mon Sep 17 00:00:00 2001 From: tisf Date: Sat, 2 Jan 2021 09:12:08 +0200 Subject: [PATCH] pytube3 support --- README.md | 1 + pyexfil/Stega/video_dict/vid_to_dict.py | 5 ++--- pyexfil/__init__.py | 2 +- requirements2.7.txt | 2 +- requirements3.txt | 2 +- setup.py | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index a93d384..7f068f3 100644 --- a/README.md +++ b/README.md @@ -144,6 +144,7 @@ For details about version look at the [tags on this repository](https://www.gith - Thanks to [Itzik Kotler](https://github.com/ikotler) for some ideas. - Shout out to [@cac0ns3c](https://github.com/cac0ns3c) for resolving some dependency hell. - Thanks to [@Nilesh0301](https://github.com/Nilesh0301) for pointing out some Python compatibility issues. +- Big thanks to [@hbmartin](https://github.com/hbmartin) for pointing us to [pytube3](https://github.com/get-pytube/pytube3) latest update and support. ### Resources - Thanks [Wireshark](https://wireshark.com/) for your awesome wiki and tool. Especially [packet dumps](http://wiki.wireshark.org/SampleCaptures). diff --git a/pyexfil/Stega/video_dict/vid_to_dict.py b/pyexfil/Stega/video_dict/vid_to_dict.py index c0ee77c..d29c33b 100644 --- a/pyexfil/Stega/video_dict/vid_to_dict.py +++ b/pyexfil/Stega/video_dict/vid_to_dict.py @@ -21,7 +21,7 @@ try: import numpy as np from PIL import Image - from pytube import pytube + from pytube import YouTube except ImportError, e: sys.stderr.write("Please install the dependencies needed.\n") sys.stderr.write("\t%s\n" % e) @@ -35,10 +35,9 @@ def _getYouTubeVideo(url): try: yt = YouTube(url) - yt.set_filename('Current') sys.stdout.write("[.]\tGetting video.\n") video = yt.get('mp4', '720p') - video.download('/tmp/main.mp4') + video.download('/tmp/main.mp4', filename='Current') sys.stdout.write("[.]\tVideo saved to /tmp/main.mp4.\n") return True except: diff --git a/pyexfil/__init__.py b/pyexfil/__init__.py index 3b2c112..4c3aa00 100644 --- a/pyexfil/__init__.py +++ b/pyexfil/__init__.py @@ -1,6 +1,6 @@ NAME = "PyExfil" SLOGAN = "Stress Testing Detection & Creativity" -VERSION_CODE = 1.3.2 +VERSION_CODE = 1.3.3 VERSION_NAME = "Harpax" AUTHORS = ['tisf'] RELEASE_DATE = '2020-12-31' diff --git a/requirements2.7.txt b/requirements2.7.txt index cefa64e..6afd126 100644 --- a/requirements2.7.txt +++ b/requirements2.7.txt @@ -4,7 +4,7 @@ slackclient progressbar numpy pillow -pytube +pytube3 PyCryptodome qrcode base58 diff --git a/requirements3.txt b/requirements3.txt index 485a096..ff3c6b3 100644 --- a/requirements3.txt +++ b/requirements3.txt @@ -4,7 +4,7 @@ slackclient progressbar numpy pillow -pytube +pytube3 PyCrypto qrcode base58 diff --git a/setup.py b/setup.py index eb63f0e..f355a23 100644 --- a/setup.py +++ b/setup.py @@ -17,7 +17,7 @@ required = [ 'requests>=1.0.0', 'impacket>=0.9.0', 'slackclient', 'progressbar', - 'zlib', 'numpy', 'Pillow', 'pytube', 'hashlib', 'urllib2', 'PyCrypto', + 'zlib', 'numpy', 'Pillow', 'pytube3', 'hashlib', 'urllib2', 'PyCrypto', 'base58', 'names', 'Faker', 'luhn' ]