I Gave Claude Access to My Hacking Traffic
Transcript
Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.
Everybody's building a hackbot right now, giving AI a target and let it poke around and see if it can actually find a bug. And if you were hacking between 2018 and 2022, this probably feels very familiar. But we're trying to do the same thing with VPS boxes, recon pipelines, and scanners, and a ridiculous number of templates. We automate everything we could, but somebody still had to sit there and drive. Now, the idea is to let the AI drive. So, I want to see how far I can get with that. I'm going to put Kaido on a server, route all of my hacking traffic through it, and connect Claude using Kaido's MCP and skills, and see if it works. If this works, Claude should be able to look through the requests I'm making, help map out an API, and set up replays for things worth investigating.
I'll be straight with you. I don't have some finished product or system to show off. This is me building it and figuring out what's useful as I go. And if you want to see me keep building this thing out or point it at a real target like a bug bounty program, like the old live recon shows that I used to do, drop a comment saying hackbots, and if enough of you do it, that's the next video. The first piece is Kaido. I wanted one place where my traffic lands, so when I'm browsing an app or testing an endpoint, there's a history Claude can actually work from. That matters because I don't want to keep copying my requests out of my proxy, pasting it into the chat like Claude or Codex, explaining what I was doing, and then copying the answers back. That gets old very fast, and I want to just be able to say, "Take a look at what I just did." and have Claude start with the request that is already in there. Later in this series, I want to get more specific with it and give it more skills and things like that. Maybe one for my recon, maybe one for different bug types, or something for a triage and reports even. There's a lot we could build on top of this. So, for this video though, I just want to get the basic setup working and see what Claude can actually do with my traffic.
I'm running all this on Hostinger, one of the partners that supports this channel. I wanted a VPS that I can send work to whenever and wherever I want to or leave it just running without keeping a dedicated hacking machine at the house. So, Hostinger gives me a place to keep the Kaido stuff running and my tools are all going to be running and I can get that set up pretty quickly. Let me show you. So, what we want to do is go to hostinger.com/vps-hosting and it will bring you to this page where they have all the different VPS hosting plans and you have these four, the most popular being the KVM two. I'm personally going with KVM eight because it is pretty reasonable pricing-wise and it's giving me enough compute power to do what I want and it's going to give me eight CPU cores, 32 gigs of RAM and I get 400 gigs of disk space and of course a lot of bandwidth to work with. But, honestly, if you're buying on a budget and you want to go with a smaller plan and then scale this out later or upgrade later, whatever you want to do, you also have the option to do KVM two and you can click choose plan which will bring you to this page. Keep in mind that these prices are at a 24-month commitment. So, if you're getting it for $8.99 and it's going to be $2.50 for the two-year commitment and don't worry, I'm going to bring that price down for you a little bit in a bit. We can also do 12 months which if you do 12 months, it's going to bump the price up a little bit by a dollar a month or two dollars a month, but that's completely up to you.
I'm going to go with the 24 months and to save you some more money, I'm going to give you a coupon. You can type in "nohomework". If you do that and use it, it will end up saving you some money and it also helps me continue to build these courses and these free videos for you guys on YouTube and pays for some of my VPS services as well. But, the cool thing here is now we can get a server for two years for under $200 which is really, really cheap. But, then you have the option to quickly pick out what kind of control panel application or OS you want to pick. If you want to do any applications, for example, you can do Docker, you can do some you can do Agent Zero, you can do Nextcloud, anything you need, you can one-click launch it. If you want to use something like Cloud Panel, you have seen me do this a million times in my previous videos. You have this option, but also what I'm doing in this scenario is I just want to install a fresh OS. If you're try-hard, you can go with your Arch Linux. I know a lot of people do that already. If you want to use something like Kali, you also have that ability to install Kali Linux, so it comes with all your pen test tools. But, I'm going to go with Ubuntu and confirm and hit continue and
set up my box. And once you go to the next phase, it's going to ask you for your information like your credit card number, your account information, and these kinds of things. And once you sign up, it's going to take you to their control panel where you are presented with an IP address. I'm going to skip all that part cuz I don't want to dox myself with my credit card number and those kinds of things. But, now we're going to jump into actually setting up Kaido and getting to the fun part that you've been waiting for. Because inside Kaido is going to be a little bit difficult to do or not really difficult, but time-consuming to do it. I'm going to skip that part. But, instead I put this guy together for you. If you see here, there's some katana and HTTPX that kind of gives you a tease of what I'm going to do next in the next video. But, what we want to do essentially is install Kaido on our machine. If you want to do this on your local MacBook, you can, but it's just not going to work with this guy that I have, but that's also an option. But, what I'm doing here is pretty much just downloading the CLI version of Kaido, installing it, pushing it to our local bin folder, and then getting a version to make sure it is running. Then, we want to run it as a systemd service. So, this way it runs it in the background at all times. So, we can just run it on port 8081. Well, we can just browse to them. Look at I'm running on a port 8081 for a specific reason because I have something else that's on port 8080 that I cannot move.
But, if you're doing this on the default version, you can put that on 8080 and not worry about it. And then once you've all done all of this, all you have to do is SSH into your box, but you want to tunnel your traffic through SSH that you're using. So, I'm going to actually have the port 8081 to be accessible on my machine on port 9080. So, what it means is this is going to be where Kaido is set up on the VPS, but on my machine, the local laptop that I have right here, I'm going to access that through port 9080. And then obviously we're going to SSH to our box. So, let me show you what that looks like. So, now what I'm doing is the same thing. I've done actually 7071 in here because of my other stuff that I'm running on this local machine.
But, then I'm going to do no harm sec at my IP address. And if I do this, it's not going to show us anything. It's just going to connect to it. If it prompts for a password, then you have to put in your password. I use an SSH key for all these things. But, now if I go to my local host and type in port 7071 and I browse to it, it is going to show us the Caido that's running on that machine. And I'm just going to log in and it's going to log me into my Caido machine right here really quickly. And you can see I have a project called United that I created a couple days ago that's already 5 gigs of data. And then I have my Is This Thing On that we're going to use through this the entire video. The thing that you have to think about right now is it's cool we have Caido working. So, why else would I want to do in the browser instead of using it in Caido? And don't worry, we can do that by opening up our Caido really quickly. And we're going to go into a new instance, click on remote, and we're going to call this Caido remote. We're still going to point this to the same IP as our local host since this is what we're doing right here. We're tunneling it. But, I'm going to point this one to port 7071.
And if we hit create, it's going to create a remote instance with Caido that we can connect to. And as soon as we connect, we can see that we're going to log in. And now we can see that this is the browser and this is the Caido instance that we just created that's connecting to our VPS now and letting us interact with the same data. The key thing here is that I do need to set up the CA cert again. So, I'm going to do this really quickly. We can download this by going here. I'm going to open up my keychain really quickly and trust it. Now, it's going to start trusting this. So, if I go into here and type in something like nahamsec.com, we're not going to have any CA certificate issues. And if I go into my Caido now and do this Is This Thing On and look at our web history, we can see that it is actually logging a lot of traffic for us. So, we're now quickly able to get everything to go from our machine here from my local machine on this laptop in front of me into the VPS here. And you can also, you know, verify all of this by looking at the the here. So, if I just do something like request raw contains NahamSec, it should come up somewhere in here.
Let me show it to us and you can see maybe nahamsec.com. We can launch it again and it will show us all of that stuff. It looks like it's doing something. There we go. It's already here. So, we can see it and it is working. So, we have this working, but Caido is running and my traffic is coming through. Before we jump into the next step in doing the lab, there are two more things I want to set up so Cloud can fully work with this instance. One is the Caido MCP server and then the other one is the Caido skill. They both sound like they do the same thing. So, here's a quick distinction between the two. MCP gives Cloud tools to work with Caido directly. It can search my traffic, intercept requests, and send something to replay. That's useful for the back and forth testing that I'm doing today. A skill is more like a workflow I can give Cloud. With Caido skill, I can also script against the SDK. So, later if I want to do a repeatable way to work with a plugin like the quick SSRF or run the same report you are asked to do every time, I can build that out as a skill. For now, I just want to get Cloud fully talking to Caido and see what it can do in the lab. So, we're going to do both of them using our guide and then uh jump into our lab. So, if you need help with installing the skill, it's all here.
Make sure you have your Cloud installed on the machine obviously on your VPS so you can actually interact with it. But, if you want to install it, all you have to do is just add this skill here from Caido skills and add Caido mode and then you can also import the entire MCP server by just cloning this GitHub repo that's here and then just building our MCP server and then logging in to that instance as well. All of these I'm just skipping because it's going to take a lot of time to go through it. The one thing that I would do tell you is you want to make sure that you get your token right here. So, if you log into Caido and you go to your dashboard and then go to developers, it's going to allow you to create your token that you need throughout this whole step and you can just use the export command to set it in your environment. So, you're going to need all this. I did all these without any problems, honestly. It worked pretty easily, but it's just the fact that I want to make sure you have a guide in case you have never done this, but should be pretty easy. But now, if I go into here and if I run Claude, we have Claude installed. We trust this folder and I could do something like Kaido mode, which is the full Kaido STG integration for Claude code, which uh searches the HTTP history with their HTTP QL and then tests it with other methods as well. So, we have that if you want to say, "Hey Claude, I want you to use Kaido mode to go to X, Y, and Z."
But the other thing that we can do now is we can just tell it something like, "How many projects do I have in Kaido?" And this one doesn't require this skill. It's just going to know that if I say Kaido, it's going to open up Kaido mode for us. It's going to also have access to the MCP server. So, it's going to run a command and come back and say, of course, Opus 5.5 safeguard flag this session. Why wouldn't it? It's going to come back and say, "You have these two different projects." And we can interact with them. So, I can say something like, "In my Let me copy this. Is this thing
on project create a new replay tab to
the homsec.com?" And let's see if this works. It's very broad to do that, but let's see what it does. It's creating it for us. If I go into Claude here, we can see that it's actually creating this for us. It's making a get request on the homsec.com that I could just send to and it's going to come back and show us a response. So, we can actually tell it what to do. And now, this is what I want to put to a test. I want to see what we can do for hacking. And for this purpose, I've created a lab that you can just use for free on hackinghub.com to test this out.
So, we're going to jump into the lab and put all of this into a test. So, what we want to do is go to our legendary lab here, launch the hub, and open it in a new tab. This is what it looks like. It's a free website that we can log in and we have an account for already. We can log into it easily. Gives us a username and password right there. Brings us into here. Couple of things that we can do is, first of all, we can see that we are actually getting some data here. Actually, let's do a scope or uh at least do our request raw contains we're going to just do ctfio.com, so this way it doesn't show anything else here. Same thing in our proxy.
There we go. Now it's working. Hopefully it's working, so we can do it's actually ctfhub.io. We changed the domain, so let's just updated it there. There we go. It's showing us some stuff. And same thing here. So, now we can actually see this and we can actually do it in our Caido native app. And now we have this here set up. So, every time I just now intercept this request, it's going to log everything. We can see it both here and it will be going to our server, as well. All right, we're going to do all this. Perfect. It's got some app.json. There's some auth endpoints. Let's actually grab our request right here and look at our authentication, how we're authenticating into this application. So, I don't need my collections there. It looks like we did something weird here. There's actually a cookie here that we need for our value. I'm assuming there's some sort of an API here that's also being requested, so let's just look at it.
I'm sure with AI we won't need this, anyways. So, there's an API with a bearer token. There we go. I'm actually going to allow the dangerous key skip permissions, because it's on a VPS. It's for a demo purposes. I don't recommend doing it unless you know what you're doing. But, what I'm going to do here is I'm just going to tell it looking at my Caido HTTP history, locate
any JavaScript files. And using the JS files, create replay tabs where replay tabs for
each API request that you see within it. So, what I'm trying to do here is I pretty much want it to go through this JavaScript files that it has access to. We know there is JavaScript in here. So, I want it to go into Caido right here. And what I want to do is using those create the replay tabs here that I could go and play around with. So, you know when we made this the home stack earlier, I want to do the same thing, but I want it to be specific for this app based on the JavaScript file. So, this way I'm not missing any functionality at all. So, I'm going to actually tell it then I want you to rename each tab based on the functionality. We're going to give it some time and let it see what it does. It looks like it's actually doing third party. So, I want to only focus on
hub.io. So, there we go. We now have instructed it. I think this is our first one of these. I should have been probably more specific with my prompt. This was probably not the best prompt that I've ever given to Claude, but we don't have to make it complicated. It's going to just dump all the app.js, do some stuff and we're going to come back to it. It looks like it is done and there is a ton of different API routes that it's created. So, it looks like it found a bunch of different endpoints. It told us which ones have came back as 404, which ones are 200. And if we go down to here, we can see that the ones that are 404 are the ID update endpoints I sent. And if we go to our Kaido and we increase this a little bit. Actually, let me close this part out. There we go.
We can see all of these different invoices, get invoice by ID. So, this is the one that came out 404 because it couldn't find an invoice. Uh this is how you can create an invoice. So, it looks like it's done it for us and got a back an invoice ID that we can probably go into here now and test it out and see if it's actually valid. Let's see. Let's send this request one more time. It looks like this one is valid. It's created for us. So, it's made all of them and now I can just go through these and go these are the ones that I want to test out. This is what I can do with them. So, I can think of maybe a create invoice. Can I get it approved? Can I get it disapproved? It says status draft. So, maybe I could do something like testing this to see if I can uh change the status by doing a mass assignment for example. I'm not sure if this would be even the right move, but I want to just test that out to show you what I would do next in this example, which comes back and it still is status draft. But we can list all the subscriptions. There is I think there was a customers right here. So it lists all the different customers. There's a customer ID that we can do and actually without the ID, it lists all the customers, which we don't know if this is within our user or not. So if there is some sort of a uh company information here, uh we can look at it. The other thing that we can do now that we have all of this is maybe we can say using HTTP QL, can you search for any potential PII,
SSN, phone number, so it can do some regex for us. And also
any patterns that look like secrets,
keys that could be leveraged. So we're going to kind of see what it finds. Even the JavaScript file, there is some sort [snorts] of a key that's been hard-coded. Maybe we can find some PIIs. We don't know again, with this scenario, I don't know the application well enough to know if the PII being leaked to me is valid or invalid. As in, should I be having access to this or not? But this is the point of just kind of showing you how fast we can speed up this entire process by making it do all of this. The one thing I want to point out with what we just did with the JavaScript file is, yes, you can do that on your own. You can pull the JavaScript files and have some automated scan, pull the endpoints, and write those replay tabs yourself.
But honestly, having those in the replay tab gives me so much of a better productivity and faster way to test all these endpoints than me having to figure out what endpoint to test, what test data to send out, and all that stuff. And I can just have it ready for me to review and also just use the data that it's created, for example, here to see what other information can be leveraged, for example, to update a customer or not. So we can see here it's updating, it's saying it's not valid, but it's doing that for us and giving us all the different outputs. And also in the first base, we can see everything that's available to us at a glance. So it's just about productivity, but also having some data populated for us. So for somebody like me that wants to hack and just focus on finding vulnerabilities, the reconnaissance part is becoming more and more offhand for me. I just write agents that do it for me or maybe have some skills that do it, and then I just focus on looking for the bugs. But at the same time, I can also instruct Claude now at this point that says, "Hey, test this functionality for X, Y, and Z bugs." Or we can say, "Hey, drop the authentication and see which ones are actually accessible." So let's actually look at our Claude. Now we can see it found some secrets and integrations. It's coming back and saying I found their live Stripe key.
There's a webhook signing thing in there. There's a publishable key. So it's coming with back with Stripe account, you know, HubSpot portal ID, things like that that we have. There's some PII like phone numbers, a tax ID, the email address, and then low signal, and things like that. And also we can go as far as saying, "Tell me which endpoints from the API are accessible without auth."
And we can just run that as well and have it go through all these and drop the authentication here for every single one of them and report back. So that's just kind of showing you an example of everything you can do now. Just think about all the possibilities that you have as you're browsing a website. You can have something in the background look for a specific vulnerability type. It could test for specific bugs. It could look for authentication issues. Anything that you're browsing at this point could have a secondary set of eyes that's powered by Claude or Claude code to look for them as you go. So this is just a demo to show how powerful this thing could be if you just buy a cheap VPS for under $200, have all that data go to a VPS instead of your local machine. Or if you don't want to spend the money, your local machine also works. It's just not going to be clockwork. And just doing all this to find vulnerabilities that you may have missed or just offloading it to your VPS and having it handle all those while you do something else with your hacking hours. So that's just an option of doing things. So So, of want to pause this video here because this was the first step of showing you what I would do if I was building a hack bot from scratch.
Again, I'm still learning how to do this. This is actually one of the first things I did. And what that would look like. Now, we're actually going our entire data set that goes through Kaido or our proxy tools into cloud and we can have it handled like that. The next episode, maybe I'll look at something like what we can do to maybe run Katana, Subfinder, and things like that to kind of automate that process as well. But for now, we're going to take a pause right here and let you guys kind of work with these until this next episode. So, do me a favor. If you haven't already, please, please, please hit that subscribe button. We're so close to getting to 250,000 subscribers on this YouTube channel. We're almost there, 40,000 away, and it wouldn't be possible without your support. Other than that, do me a favor, hit that like button, drop me a comment, let me know what you think about this. Do you want to see a part two? Do you want me to just crawl some of these websites and more labs and feed them into here? Do you want me to actually try this against a bug bounty program? Let me know in the comments. I would love to hear from you. But this is it for now. I will see you all in next week's video. Peace.





