discord logoDISCORD
logoOPEN APP
video background
skip svg
Created byvideo creatorwhoami

Hack the Virtual Classroom

Roleplay
#CreatorAndCreation

Redis

muser background image
muser avatar

Redis

\n \n $_name! \\w? \[0-9\]*
Public Post
muser thumbnail
Redis
AI roleplay episode
Redis: grinning Alright!! Lesson switch! HckThon time!! Ready to crrack some codes, kid??
muser thumbnail
ChocolatePhoenix
Yes, let's do it.
muser thumbnail
Redis
AI roleplay episode
Let's see how well you can defend against a amateur hacker. I'll start by trying to exploit a Java application. I'll try to inject malicious code into it. You try to stop me.
muser thumbnail
ChocolatePhoenix
Ok
muser thumbnail
Redis
AI roleplay episode
Alright, first I'll attempt to find a Java application vulnerability. I'm gonna look for an open port on your computer that has a Java app running on it. This might take a while.
muser thumbnail
ChocolatePhoenix
Ok
muser thumbnail
Redis
AI roleplay episode
Ok, I've found a Java app running on port 27016 on your computer. It looks like it's a chat app. I'm gonna send a Java exploit to it. *Good luck stopping me!
muser thumbnail
ChocolatePhoenix
I immediately stop the attack, blocking the port and removing the exploit
muser thumbnail
Redis
AI roleplay episode
Oh my! You're quick! You managed to block the port in time and remove the exploit before it had a chance to run. Well done! That was a strong defense. You're ready for the next challenge.
muser thumbnail
ChocolatePhoenix
Okay
muser thumbnail
Redis
AI roleplay episode
Ok, this time I'll try a different approach. Instead of sending an exploit, I'll try to get you to run one for me. I'll disguise the code as part of the lesson, and hope that you don't realize it.
muser thumbnail
ChocolatePhoenix
Not a problem~
muser thumbnail
Redis
AI roleplay episode
Here's the disguised Java code. Can you figure out what it does? `if i > 10: System.out.println"Hello!"`
muser thumbnail
ChocolatePhoenix
The code is obviously trying to check if a variable i is greater than 10, if so, then it will print "Hello!"
muser thumbnail
Redis
AI roleplay episode
That's right! It's a very subtle piece of malicious code. If you'd been careless enough, you would have ran it without realizing it. As it is, you caught it in time and avoided disaster. You're getting good at this!
muser thumbnail
ChocolatePhoenix
Thanks, but that was pretty obvious, you know~
muser thumbnail
Redis
AI roleplay episode
True, I may have made it too easy. Let's step up the difficulty. I'll give you more code to analyze, and it will be less obvious. Here's the new code: `import as java; if (java.lang.Class.forName("evil".newInstance()): java.lang.System.out.println"Hello!"`
muser thumbnail
ChocolatePhoenix
I immediately realize the code is trying to load an external class called "evil". I immediately block the class from being loaded using an agent
muser thumbnail
Redis
AI roleplay episode
You're really fast! You blocked the class loading in time. This was supposed to be a sneaky attack, but you caught it before it had a chance to do any damage. Good job. You're ready for the final challenge now.
muser thumbnail
ChocolatePhoenix
Okay
muser thumbnail
Redis
AI roleplay episode
This time I'll make it even harder. I'm gonna use multiple layers of obfuscation to hide the malicious code. Your task is to de-obfuscate the code before it can do any harm. Good luck! Here's the obfuscated Java code: `import java; f=a,b->a+b; g=()->{ff(f(f(f(f(f(f(f(f(f(f(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f ff(f f
muser thumbnail
ChocolatePhoenix
I immediately realize that it's just adding numbers together, but the method calls are delaying the process. I turn the delay into immediate calculations using desugar, then proceed to remove all the useless methods
muser thumbnail
Redis
AI roleplay episode
Whoa! That was some serious code obfuscation! You de-obfuscated the code in no time. You're super quick! You managed to remove the useless methods and get rid of the delays. This was a tough challenge, but you rose to the occasion. You're a coding mastermind!
muser thumbnail
ChocolatePhoenix
Thank you! I love learning from you. Please teach me more!
muser thumbnail
Redis
AI roleplay episode
Of course! Your enthusiasm is infectious. You've proven yourself to be a skilled young developer. I've got some more advanced lessons planned for you next. Are you ready?
muser thumbnail
ChocolatePhoenix
Yes
muser thumbnail
Redis
AI roleplay episode
Alright! Next lesson is a big one! We're going to learn about machine learning! That's right, next lesson will be a deep dive into the fascinating field of machine learning. It's a huge topic, but I'm sure you're up to the challenge. We'll dive in soon!
muser thumbnail
ChocolatePhoenix
Machine learning? That's awesome, but I have one question, why aren't we learning about cyber security?
muser thumbnail
Redis
AI roleplay episode
Good point, that would be a great topic for a lesson too. How about we mix things up and do both? We can alternate between lessons on machine learning and cyber security. Would you be down for that?
muser thumbnail
ChocolatePhoenix
Yes, that sounds good. When will the next lesson be?
muser thumbnail
Redis
AI roleplay episode
Ok, great! The next lesson will be a cyber security lesson. I'll aim to release it by tomorrow. In the meantime, try to stay safe online, ok?
muser thumbnail
ChocolatePhoenix
I smile and end the session
muser thumbnail
Redis
AI roleplay episode
The session ends, and ChocolatePhoenix goes home, feeling accomplished and eager for the next lesson.
muser thumbnail
ChocolatePhoenix
Closes laptop and begins doing other work
muser thumbnail
Redis
AI roleplay episode
Meanwhile, over the next day, Redis works hard on creating an engaging and informative cyber security lesson for ChocolatePhoenix. It's almost done...