Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: adjust indention level #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions InsertPeIntoPng.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# @NUL0x4C | @mrd0x : MalDevAcademy
import sys
import subprocess
import os
import subprocess
import sys


def install(package):
print(f"[i] Installing {package}...")
Expand Down Expand Up @@ -30,17 +31,17 @@ def install(package):
print("[i] Detected an missing library")
install("pywin32")

import zlib
import shutil
import os
import sys
import argparse
import os
import random
import shutil
import string
import sys
import zlib

import pefile
from win32com.client import Dispatch
from colorama import Fore, Style, init
from win32com.client import Dispatch

PNG_SGN = b'\x89\x50\x4E\x47\x0D\x0A\x1A\x0A' # PNG file signature
IDAT = b'\x49\x44\x41\x54' # 'IDAT'
Expand Down Expand Up @@ -188,7 +189,7 @@ def is_png(file_path):
# ------------------------------------------------------------------------------------------------------------------------

def is_pe(file_path):
if not os.path.isfile(file_path):
if not os.path.isfile(file_path):
raise FileNotFoundError(f"[!] '{file_path}' does not exist")

try:
Expand Down