Injecting Code into Notepad with Python [Ethical Hacking]

  Рет қаралды 21,892

Just Another Coder

Just Another Coder

Күн бұрын

Пікірлер
@JustAnotherCoder
@JustAnotherCoder 5 ай бұрын
Consider donating to help the channel! Buy me a kofi ko-fi.com/justanothercoder Patreon patreon.com/justanothercoder
@googleisbad
@googleisbad 2 жыл бұрын
Wow amazing video, please make more videos about coding I'm definitely subscribing and liking the video
@DyiiFeral
@DyiiFeral 3 жыл бұрын
Hello, thanks a lot for the help , is there any way to link the file to the code , what i mean that i have a whole CODE.PY file and i want it to assign it to the variable code instead of copying the whole text
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
what you can do is read the CODE.py file and make that be the variable. Example: file = open("CODE.py", "r") code = file.read() file.close() and code is your code variable
@tinagoparaju342
@tinagoparaju342 3 жыл бұрын
Hi, thank you for this video! I am getting the message "Could not allocate memory for shellcode" while running this using anaconda/jupyter notebooks, do you have any tips on how to bypass this error message?
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
This is probably because subprocess is trying to read too much memory, replace the line `subprocess.Popen("notepad.exe")` with `os.system("notepad.exe")` Let me know if this worked!
@tinagoparaju342
@tinagoparaju342 3 жыл бұрын
​@@JustAnotherCoder Thank you! So the error message is gone but there is no tkinter window that opens. Any suggestions? I'm checking to make sure I have all the right packages properly installed on anaconda, though it looks like I should...
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
@@tinagoparaju342 Hmm, try with different code then, like write a few lines of code that will create a text file on your desktop and see if anything happens.
@tinagoparaju342
@tinagoparaju342 3 жыл бұрын
@@JustAnotherCoder I decided to go ahead and run this directly through IDLE instead of Jupyter Notebooks to see if it would bring any clarity to the issue and I actually am in fact still getting the message "RuntimeError: Could not allocate memory for shellcode" even when using the os alternative you shared. Seems to still be a memory issue... If you know of any other ways to limit how much memory this program might require, that would be fantastic! Any advice is appreciated. Thanks for all your help thus far!
@tinagoparaju342
@tinagoparaju342 3 жыл бұрын
After playing around with this I'm actually getting this message: " pymem.logger.debug('New thread_id: 0x%08x' % thread_h) TypeError: %x format: an integer is required, not NoneType" any suggestions?
@koroviev8897
@koroviev8897 3 жыл бұрын
Hi! I'm sorry if this request is like too basic for your target audience (I'm almost sure it is). Would you consider doing a short video on what code injection exactly is? I serached for a while in Google but the info I found was not very specific or clear at all.
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
Sure I'll think about it, I'm not a professional at code injection so I'm not sure how well I can explain it but I'll try!
@sertanpro9194
@sertanpro9194 2 жыл бұрын
Hello mr coder I am a beginner and have some questions? Do I have to learn a lot about python code before using this method?
@donalddade5643
@donalddade5643 3 жыл бұрын
Wait, hold on just one fricking second. In Windows, one process can just access another process's memory space? Good lord that's scary.
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
Yep, that's how most virus's work, they inject themselves into windows processes.
@EpicVideoGamer7771
@EpicVideoGamer7771 3 жыл бұрын
This is so cool!!!!!! Subbed :D
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
Thanks!
@AlyceIsFree
@AlyceIsFree 2 жыл бұрын
Hey, do you have a clue about how the pattern and Remote pointers work? cannot for the life of me figure it out
@ElectroRestore
@ElectroRestore 3 жыл бұрын
Is there a way to undo the injection or is it permanently part of the .exe?
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
Whenever the application you injected closes the injection disappears also. Since the injection injects itself in the process of the exe that is running not the actual exe. Injecting code into files is something else, might make a video about it soon
@8legged
@8legged 3 жыл бұрын
what is the editor you use?
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
The editor which I use in the video is IDLE, it comes with the python installation.
@AlexWitton
@AlexWitton 2 жыл бұрын
can you help i am getting this error "TypeError: %x format: an integer is required, not NoneType"
@fernscripts1780
@fernscripts1780 2 жыл бұрын
yea same
@snakemax
@snakemax Жыл бұрын
me three
@tunisiansmakingmoney3232
@tunisiansmakingmoney3232 3 жыл бұрын
its cool i can put a malicieuse code and run it on the explorer so u cant close it or the pc will crash thats so cool now i dont have to bind my trojans !
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
I mean... yeah that's a way you can use it
@tunisiansmakingmoney3232
@tunisiansmakingmoney3232 3 жыл бұрын
@@JustAnotherCoder its the coolest way thb :p
@fwiii1831
@fwiii1831 3 жыл бұрын
How to inject batch script into pdf ?
@chadthunderblock5951
@chadthunderblock5951 3 жыл бұрын
i am new to python and all the hacking can you explain to me what are the benefits of injection, thnx.
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
Yep so injecting as I showed in this video is the most basic type of injection, you can't really modify variables in the app easily. I made another video on game hacking which is very similar to code injection, but instead of injecting code you modify existing code, and it works on any app not just games. Injecting code can be useful if for example you want to add more features to a program, say when you type { in notepad you want it to automatically put another } you can write a quick program and inject it. The more advanced type of code injection is by DLL injection (which only works with C/C++ iirc) which is a harder to do but you can modify variables in the app and it is most useful for making hacks for a games since you can make it be like a modmenu if you know what that is.
@chadthunderblock5951
@chadthunderblock5951 3 жыл бұрын
@@JustAnotherCoder can injection be used to inject a virus if so, how can it be done
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
@@chadthunderblock5951 Yes it can, depends on how the virus is made though. If it is a python file then you can just copy the code of the file and inject it the same way I inject code in this video. If you want better results you can also try injecting into file explorer so the user can't close the virus at all
@chadthunderblock5951
@chadthunderblock5951 3 жыл бұрын
@@JustAnotherCoder thnx
@googleisbad
@googleisbad 2 жыл бұрын
Quick question is it persistent?
@amboXD
@amboXD 10 ай бұрын
no lol, it only injects into volatile memory
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
Join the new discord server here: discord.gg/wXz8GD9ySm
@ApfelbaumOhneBirne
@ApfelbaumOhneBirne 3 жыл бұрын
i somehow cant get the code running anny sugestions for the error
@user-xf7mu7ub9d
@user-xf7mu7ub9d 3 жыл бұрын
for me the program works but then it exists without running the injected code and says that there's an error
@ApfelbaumOhneBirne
@ApfelbaumOhneBirne 3 жыл бұрын
@@user-xf7mu7ub9d yeah the same happened to me
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
@@ApfelbaumOhneBirne ​ @M what does the error say if there is an error?
@rigoni3381
@rigoni3381 Жыл бұрын
this is all gret but is sadly running in of windows i dont copies, great GNU, thank mas dennis ritchie and stallman for me show the truth
@gigel623
@gigel623 3 жыл бұрын
thx very much
@rigoni3381
@rigoni3381 Жыл бұрын
this channel is good you this future, but please stop windows
@simantmohan
@simantmohan 3 жыл бұрын
gr8
@ThePowerRanger
@ThePowerRanger 3 жыл бұрын
Great video but have you or anyone else reported this to Microsoft?? Seems like a security flaw or bug maybe???
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
It's not really such a big bug, even if they patch it, it will still be possible to inject DLL's into any program which is basically the same thing like injecting code.
@ari_archer
@ari_archer 3 жыл бұрын
imagine using IDLE
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
I use VSCode when working on projects but I use IDLE for smaller tutorials which require just one file and not a lot of code. IDLE is also actually much better for beginners then VSCode or other IDE's since if just start coding with VSCode then you won't learn anything, everything will be auto complete for you.
@scb1337
@scb1337 3 жыл бұрын
discord or telegram ?
@JustAnotherCoder
@JustAnotherCoder 3 жыл бұрын
My discord is n0#2180
i created malware with Python (it's SCARY easy!!)
25:18
NetworkChuck
Рет қаралды 2,5 МЛН
Jaidarman TOP / Жоғары лига-2023 / Жекпе-жек 1-ТУР / 1-топ
1:30:54
Python keylogger
6:23
David Bombal
Рет қаралды 400 М.
Password Cracker with Notepad!
11:41
ebola man
Рет қаралды 829 М.
Using My Python Skills To Punish Credit Card Scammers
7:13
Engineer Man
Рет қаралды 4,9 МЛН
Hacking any Game with Python and Cheat Engine
14:14
Just Another Coder
Рет қаралды 51 М.
Learn Reverse Engineering (for hacking games)
7:26
cazz
Рет қаралды 1,1 МЛН
Cracking passwords using ONLY response times | Secure Python
9:20
Automatically Visualize Datasets with AutoViz in Python
15:39
NeuralNine
Рет қаралды 18 М.
Python Socket Programming Tutorial
49:43
Tech With Tim
Рет қаралды 1 МЛН
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 193 М.