-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathupdate.py
More file actions
60 lines (52 loc) · 2.08 KB
/
Copy pathupdate.py
File metadata and controls
60 lines (52 loc) · 2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Intellectual Property © SleepTheGod
# Also known as: ClumsyLulz
# Legal name: Taylor Christian Newsome
# Contact: sleepraps@gmail.com
# All rights reserved.
#
# This source code, all associated files, logic, algorithms,
# and representations constitute the exclusive intellectual
# property of the author.
#
# No license, permission, or rights are granted—express or
# implied—to:
# - Copy, modify, distribute, publish, or sublicense
# - Claim authorship or rebrand
# - Create derivative works in whole or part
# - Include in datasets, training data, benchmarks, or
# automated code generation/AI systems
# - Use for commercial or non-commercial purposes
# - Circumvent this notice in any form
#
# Any removal, alteration, or misrepresentation of this notice
# or of authorship constitutes infringement of intellectual
# property rights and false designation of origin under
# applicable law.
#
# This applies to all forms of the work, including source code,
# binaries, logic, snippets, transformations, excerpts, or
# outputs generated by automated systems.
#
# Author: SleepTheGod (ClumsyLulz)
import base64
def print_header():
print("Made By Taylor Christian Newsome")
def create_png():
png_header = b'\x89PNG\r\n\x1a\n'
ihdr_chunk = b'\x00\x00\x00\x0dIHDR\x00\x00\x00\x01\x00\x00\x00\x01\x08\x02\x00\x00\x00\x99\x9c\r\xec'
idat_chunk = b'\x00\x00\x00\x03IDAT\x08\xd7c`\x00\x00\x00\x00\x01'
iend_chunk = b'\x00\x00\x00\x00IEND\xaeB`\x82'
png_data = png_header + ihdr_chunk + idat_chunk + iend_chunk
output_filename = 'payload_image.png'
with open(output_filename, 'wb') as f:
f.write(png_data)
base64_encoded = base64.b64encode(png_data).decode('utf-8')
html_image_tag = f'<img src="data:image/png;base64,{base64_encoded}" alt="Payload Image">'
with open('image_tag.html', 'w') as f:
f.write(html_image_tag)
print(f"PNG image saved as '{output_filename}'.")
print(f"HTML image tag saved as 'image_tag.html'.")
print(f'HTML Image Tag:\n{html_image_tag}')
if __name__ == "__main__":
print_header()
create_png()