Тёмный

Obfuscate Payloads with XOR Encryption 

Daniel Lowrie
Подписаться 12 тыс.
Просмотров 7 тыс.
50% 1

Опубликовано:

 

9 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 44   
@yanivhoffman
@yanivhoffman Год назад
Excellent one Daniel. Very informative. It’s been a while I was planning to dive more into this subject and luckily you did it 🔥🔥🔥🔥
@daniellowrie
@daniellowrie Год назад
Thanks, Yaniv😀👍 And speaking of 🔥🔥🔥🔥, I just watched your video about Tor/Snowflakes/Russia and it was excellent!
@firosiam7786
@firosiam7786 Год назад
Good thing this xor encryption needed a vedio of its own very important for sneaking ur payload onto targets
@daniellowrie
@daniellowrie Год назад
Thanks, firos!
@Hacker_Baby
@Hacker_Baby Год назад
Would you be willing to do a playlist dedicated to obfuscation?! 😮
@daniellowrie
@daniellowrie Год назад
Thanks for watching, John! That's not a bad idea. I'm sure to be doing more obfuscation and FUD stuff in the future, so it makes sense that I should organize those into a Playlist 😎👍
@Hacker_Baby
@Hacker_Baby Год назад
@@daniellowrie That would be FANTASTIC!! No matter what you do, your method of explanation on complex cyber topics is indispensable to the community, so thank you! Rock on, Brother! 🤘🏽
@monqogames8842
@monqogames8842 Год назад
8:37 if two values are the same XOR'ing them results in a zero Love your vids
@daniellowrie
@daniellowrie Год назад
Thanks for the correction, Monqo Games and thanks for the love! I guess I probably shouldn't film sick 😅
@alaynn6916
@alaynn6916 Год назад
Very very nice video, i hope you make more content like this!
@daniellowrie
@daniellowrie Год назад
Thanks, Alaynn! I'm trying to put out more content, so expect more stuff like this in the future 😉👍
@lancemarchetti8673
@lancemarchetti8673 Год назад
Nice! I am trying to figure out a way of using indistinguishable obfuscation in jpeg binary code to launch an instruction when the image is opened.
@daniellowrie
@daniellowrie Год назад
That will be very awesome, Lance! Make a video when you're successful 🙏
@Xpppp1
@Xpppp1 5 месяцев назад
Thank you ❤🚀 I can use the same technique with android payload ?
@daniellowrie
@daniellowrie 5 месяцев назад
That's a great question. XOR is a common function and many Android APKs are written in Java and C++, which msfvenom supports, so I think you could do this for Android payloads, but I've never messed with it though.
@firos5381
@firos5381 Год назад
hmm isnt there an option in metasploit to dynamicaly xor enocde the payload, its good to learn to code the xor encryption as u can be more self reliant but if i do it in any of the both ways its gonna be serving the same purpose of encryption right no difference in xor encrypting either ways right , and also this metasloit payload code does it have to work with the meterprter session itself ? if the code is generated could it be used with any c2 of ur liking by copy pasting the payload to establish a connection using the c2
@daniellowrie
@daniellowrie Год назад
You are correct that metasploit has a xor encryption for payloads, but you're also correct that we should be learning how to do these things for ourselves so that we don't have to rely on tools for everything. I've had xor encoded metasploit payloads get popped by AV before, so you gotta expect those off-the-shelf solutions will eventually get signatured and that's when your own solution will really come in handy. I'm fairly certain that some metasploit payloads can work with other listeners.
@galax5130
@galax5130 10 месяцев назад
Epic 1:52 😂
@daniellowrie
@daniellowrie 10 месяцев назад
I do have my moments 😁 Thanks for watching!
@liorshalom4
@liorshalom4 Год назад
I can do the same with different payloads?
@daniellowrie
@daniellowrie Год назад
I'm pretty sure you can.
@UniversalnewsMusic
@UniversalnewsMusic Год назад
Hello do I need to pip install xor before I can use it
@daniellowrie
@daniellowrie Год назад
I think xor is a part of the Python Standard Library, so you shouldn't need to install it.
@UniversalnewsMusic
@UniversalnewsMusic Год назад
@@daniellowrie sir please I have a plain utf-8 written payload script, can this method encrypt it also.
@liorshalom4
@liorshalom4 Год назад
its not working for me
@liorshalom4
@liorshalom4 Год назад
ITS WORKING GREATE!!!!! THANKS YOU VERY MUCH!
@daniellowrie
@daniellowrie Год назад
@@liorshalom4 I'm glad to hear that you got it figured out. For others that may be having issues, would you be willing to share what the issue was and how you fixed it?
@user-gh9hq6bu6f
@user-gh9hq6bu6f Год назад
nice concept but i wished i could have done mine as perfect as you have done yours. unfortunately i have got this error even though i have to imitate your same pattern. how can i fix this error. TypeError: "a byte-like object is required not str" please i will be grateful for your answer
@daniellowrie
@daniellowrie Год назад
Hey Tonye, thanks for watching! I hate to hear that you're having trouble with your script, but hopefully I can help you solve the issue. It sounds like one of your objects is of the type "string", but the system is looking for an object that is of the type "bytes". (I ran into this same issue when creating my script) So what you have to do is either... Make sure to define the type of object you want when you create an object like a variable. Example of a "string" type object: var1 = "foobar" Example of a "bytes" type object: var1 = b'foobar' Or you can convert your "string" object to a "bytes" object. Example of converting a "string" to a "bytes" object: Create a "string" object as a variable called "var1"... var1 = "foobar" Verify that it is a "string" with "type()" type(var1) Convert your "string" to "bytes" object and save it in a new variable called "var2"... var2 = bytes(var1, "UTF8") Verify that "var2" is a "bytes" object... type(var2) If you copied my script, then I would just recheck to make sure you didn't miss something small that could be causing your issue, or just quickly convert your "string" object to "bytes" and hopefully that clears everything up for you. I pray this helps you work it out. Cheers!
@user-gh9hq6bu6f
@user-gh9hq6bu6f Год назад
Thank you very much for your time and efforts. I am grateful. Please keep your good work up for us. Kudos
@daniellowrie
@daniellowrie Год назад
@@user-gh9hq6bu6f happy to help, Tonye! 😀👍
@user-gh9hq6bu6f
@user-gh9hq6bu6f Год назад
@daniellowrie Hello Daniel. It's quite amazing how everything work fine as you outlined for me on my previous question. except when compiling the xor script to an exe with pyinstaller, it becomes an un-ending errors of different sources that has broken my heart for a couple of days now. So, I thought to stop by and consult your authorization if you can help me out again. Thanks for your help in advance. How do I make the already "xor script" an exe without errors with pyinstaller or it's alternative?
@daniellowrie
@daniellowrie Год назад
My friend, this is why I've started learning other programming languages. Compiling Python to EXEs can be a nightmare and is the main reason I've started looking into "compiled" languages. Python is a "scripting" language that can be compiled with the right "magic spell", but that's not what it's meant to do. Whereas Rust, C/C++/C#, Golang, Nim, etc, they are compiled languages by nature and therefore are much better suited for generating EXEs. That said, be on the lookout later today for my latest video which is building a buffer overflow exploit using Golang. If you like Python (which you should and I still do), then I think you'd like Golang as well and may be more useful to you when you want to make an EXE.
@Fantasia1013
@Fantasia1013 Год назад
is it possible to do the same for apk ? Nice video btw !
@daniellowrie
@daniellowrie Год назад
Thanks for watching, Fantasia! There is a pypi project called "python-for-android" and it looks like it just may be the lunatic you're looking for. (Great! Now I've got that song in my head😆) pypi.org/project/python-for-android/
@Fantasia1013
@Fantasia1013 Год назад
@@daniellowrie haha , thanks for your answer , btw is there a tool like shellter for android ? shellter can only be used for windows payloads
@daniellowrie
@daniellowrie Год назад
I'm not aware of any "shellter for android" tools off the top of my head, but if I come across one I'll be sure to let you know 👍
@Fantasia1013
@Fantasia1013 Год назад
@@daniellowrie ok thanks brother
@daniellowrie
@daniellowrie Год назад
@@Fantasia1013 Happy to help
@ramseymanyungwa
@ramseymanyungwa 5 месяцев назад
this does not expire right ?
@daniellowrie
@daniellowrie 5 месяцев назад
I'm sorry, but I'm not sure what you're asking 🤷‍♂️
@usernotfound20246
@usernotfound20246 4 месяца назад
it doesnt bypass runtime exec
@Kingdd1os
@Kingdd1os Год назад
Algorithm
Далее
How Hackers Hide From Memory Scanners
21:11
Просмотров 58 тыс.
Where People Go When They Want to Hack You
34:40
Просмотров 1,7 млн
Bike vs Super Bike Fast Challenge
00:30
Просмотров 11 млн
7 Cryptography Concepts EVERY Developer Should Know
11:55
Starting with JTAG Hacking
6:04
Просмотров 16 тыс.
How To Protect Your Linux Server From Hackers!
20:38
Просмотров 300 тыс.
virus.pdf
10:20
Просмотров 204 тыс.
How Hackers Move Through Networks (with Ligolo)
20:01
Просмотров 269 тыс.