This is the Hackathon Showcase. We're going to have two people demonstrating their tools and what they've got. So I'll just briefly introduce it. We've also got two judges who will be asking the predominant amount of questions when we get to the question period, but anyone else is free to ask questions as and when we go. Just to kind of run you through the format as to what we're going to have, each team will have 15 minutes to present their tool, and then there will be five minutes for Q&A afterwards. If you've got any further questions after that, by all means, grab the teams, and you can discuss that. Our two judges are Justin and Maxi. Starting with Justin, Justin is, according to the notes that I've had scrawled in front of me, is an active Ozint researcher. He runs Ozint Framework, and he's a CFP review mentor. I'm hoping that's all correct. If it isn't, just smile and nod. And Maxi runs ToolsWatch. Moving straight into our teams, we've got RTL Researching, and they're going to be discussing an API for free SMS receiving services. And I'll hand over. I'll give it up once I've switched this mic on. Thanks very much. Okay. I think the mic's on. Can you hear me well? Should I put it closer? That's fine? That's fine? All right. So, first time participating in any kind of contest here at DEF CON, so not a real programmer either. So, trying to participate for the first time in an Ozint hackathon. The idea that... we come up with, we're a team with two people. I'm Brad, and there was Lynn, we both tried to code together on this project. Is we had the idea that to provide an API for as a service to other web services, in order they can, as a countermeasure to detect fake accounts. Fake accounts, fake news, trolling, it's always been a big thing on the interwebs. I suppose it's hot news now. It's hot news nowadays as well. So, the idea is the following. So there's a lot of web services... Do you have the keys? Or I can... Sorry, sir. No, no. I'll use this one. Yeah, you can talk into that. Either way. It'll be good. Okay. Put it down a little lower on the end. Lower? Yeah. Right, put it a little lower. Here. Sorry. Here you go. All right. And... Okay. I can put it up. Here. Okay. This is better? Okay. I can hear myself through the speakers now. I suppose it's a good sign. Yes. So basically, upon account creation on a lot of platforms, nowadays you have to provide a lot of data. You have to provide a cell phone number, which should be a valid one, because often they send an activation message to you, an activation code. So you should receive a text message on your phone and then type over the code on the sign-up form in order to complete the sign-up process, right? Now, for a person who generally wants to create a personal account, he puts in his phone number, creates a new account on the platform, it's no problem. But there are also people who want to just create an account, but they don't want to provide their own data. They want a phone number for specific reasons, or they want to create multiple accounts, so they need to have multiple phone numbers. And there's web services out there that allow you to read received SMS text messages to their specific numbers. I'll show you a few examples of those web services so you know what I talk about. So there's these dodgy-looking websites like Receive and SMS.com. I mean, I'm not saying that they are performing any... like, illegal or really dodgy kind of stuff, but a lot of people use them for dodgy reasons, I suppose. So basically, you pick one of the phone numbers, let's go to Switzerland, and then, yeah, then you can see, for example, activation codes being sent to this specific number. That could be interesting. So what do we want to do? We want to create a tool which basically scrapes a predetermined list of these kind of websites, scrapes them for their phone numbers that they offer on the site that you can read the text messages from. Yeah, that's another one of those ones. And put all these in a database, like a small database. And once the scraping is done, it's in a database. The idea was to provide an API so some service, who is not necessarily running the database themselves, they could, but then they have to run the scraper themselves as well, could just query the database. Run the database through an HTTP GET command, and then see whether a phone number is known in that specific database or not. If it's known in the database, then it's highly likely, or it is, like with certainty, a person who is trying to set up an account using one of these free text messaging services. Depending on what kind of platform that you are running that you want to do fraud detection, that's not desirable that people put in fake telephone numbers or telephone numbers that they are not the owner of. Yeah. So, that's why we created, in the few minutes' time between all the interesting talks here on DEF CON, a tool called Free SMS Detector, basically, yeah, we even had a little bit of time to put some basic documentation in there, so it's based on Python 3. You can clone it. It's all on GitHub, I suppose, yeah, the GitHub repo link will be available afterwards on the Recon Village. Recon Village website as well, or you have to watch the video again. So there's two parts. You could run it yourself and provide an API to others, or you could run it yourself and not use the API, but just use the Python component, so we split it up. So there's actually two components. There's the crawler part, which could, of course, be improved if you have your own idea of places where to find these malicious telephone numbers, you could easily extend this and add your own crawling to the script, and there's the API part. So for the API part, because that's going to be probably the most interesting, because for that you don't have to run anything yourself, you just need to use the service somebody else is providing, so the idea is that you do an HTTP request to a server running this script. I'll give a small demonstration. So, yeah. So I'm not sure if you can read the URL. So basically you just do an HTTP GET and then you provide a phone number attached to it. So just be careful that the phone number is URL encoded, since a plus or a space or a parenthesis in the URL should be decoded, otherwise the data is not passed on to the script. So if you just, it's pretty straightforward, if you run, first of course you have to launch the web API. Which is, in this case, on a local host. So I'll be firing it up. All right. That will be better. So basically you just query your number that you want to query and then it returns true or false. It's just as plain simple as that. Now for privacy issues, a service, like a service who wants to do this kind of fraud detection might not necessarily want to expose their new account creating, new accounts that being created, they don't want to expose the phone numbers of the new users, so there's a second method. It's called format the phone number that the user has done as a specific format. So you move all the spaces and the parenthesis, the format is called E164 and they have fancy names for that. And then you just make the MD5 some of that, the hash, and then you just throw that hash into the web API. So that way you only get a true result if that same hash is also in the database and present. Just to show you, for debugging purposes, how the database structure looks like. So there is MD5 hashes, telephone numbers, and when it was crawled and on which URL it was found at the time. To quickly show you the crawling part, so this is the SQLite database that runs in the background. There is, at this moment, it's there on the bottom. 84 different phone numbers present. Now if you look at the unique ones, because we don't throw away any data, there's 25 unique ones at the moment. So if we, for example, would launch the crawler, let's see, I'm going to take it straight from the documentation, let's see. So to populate the database. So once you have cloned the project. Once you have cloned the project, it's just as simple as following the instructions on the GitHub page. It doesn't require any Python knowledge, but it does help. So if we launch the scraper now, so it scrapes a few sites, some debugging output as well. So as you can see, the telephone numbers have sometimes dashes, sometimes they don't. If you now go look at the database. Hopefully, so we have 84 now at the bottom, if I do a refresh, I get 107, so there's more entries in there. Good. If you look at the unique ones, so there's no new unique ones collected, not because I ran it this morning. So there's chances of having a new number on there is quite small. Let's see if I missed something, so go over it. So that's basically the idea, to provide a very simple script that could help you detect fraudulent signups. So that's the first step for your web platform. What are the possibilities in the future? I mean, this is very basic. It's not extremely extensive. This has all been made in a few hours during the most awesome event of the year, so bear in mind. There's casinos and drinks around it as well, so they're all working against us as a factor. But you could extend, I mean, if you think it's useful, you could extend it with other phone numbers. Of course, we have some version of generic regular expression that gets any kind of phone number automatically from any kind of HTML text or anything like that. It's kind of buggy at the moment, but we're fixing it. I think that pretty much concludes it. So I understand. If there's any questions about this, now is Q and A. Cool, no questions. Awesome. Thank you. So, will it work for all the carriers? Yes. I mean, it's basically the input of the database is predefined web pages, so we have a list of web pages. Quickly show you. So we put like four websites in here. These are services that are, for the moment, hard coded in. So you could, I mean, they're infinite, these services. There's not hundreds of them, I think, maybe 20, 50, 40. Just put... Yes. And those will be scraped, and those telephone numbers put in the database. That's the idea. So will you detect all possible fraudulent phone numbers? Not at all. I mean, there is ways of getting a temporary phone number if you pay a small price, but a lot of those people who make a fraudulent account, they're even not willing to spend 20 cents or anything. For two weeks. For two reasons. One, it costs money, as little as it is, but if they make 100 bots, it costs gradually more to spend the money, but also because it leaves traces. As soon as you pay something, it's very difficult to stay anonymous, so that's why they just want to use the free numbers. I mean, most people are lazy. I mean, as a scripter, I'm lazy as well. That's why I script, because I don't want to do this stuff manually. Do I have too many bots in here? Yeah. I don't want to do that. Okay, well, I think we have about 200 questions. Thank you. All right. I hope you're not hearing how hard it's been moving over there today. Let's see. You've got time. No worries. Let's hit this little button right there. All right. Let's see if we can get it out of here. Just make sure it goes down. Okay, there we go. Do you want to show me that? Do you want me to put it in the middle of somewhere around here so we can work it best? Okay. Okay. Okay, now to introduce the next speaker. I've got John Servant who's going to be introducing reconing module for automatic extraction of information from web pages. Okay, over to John. So I don't know if anybody's played around with the tool ReconNG before. Anybody seen that? It's one of my favorites. It works really good. What I like about it is it puts information in a database. Okay. So that the other tools are like they're modules that can be added and they can use that same information. So what I have here is not something new. It's like a spider. But the concept is that it just helps add more data into the database. And I'll show you that in a minute. So what it does is you basically type in, like the website that you want to scan. So it's going to basically open up the web page, go through there and parse out all the hyperlinks. Let me see here. So I'll just try eBay.com for example. And, oh wait, hold on. I have to select. Like there's an option. Like if you're using ReconNG, you would import all of your previous data if you wanted to. All right. So kind of go up to the top here to show you what was going on. The following unique host names were grabbed from the web page. But we don't know which one of those domains are ours. So the way that I'm doing it right now is to search the base of the domain, eBay.com. All of these fall within the base domain that you added. So you know that those are your domains. And so then it gives you an idea. It gives you an option of the remaining domains. It gives you the option do you want to search each one of those for host names. So that's kind of what all that is. So your options here are if we want to continue the next scan. So this next website is eBay classified group. That looks like it's eBay. So you would hit 3 to continue my next scan. And so then it's going to scan that web page and pull back more hosts and stuff. So right here you can see where it started scanning. 56 hosts have been identified so far. And then 25 of those belong to your organization. So this next one, stubhub.com, was probably a link to another web page. So you don't want to scan that one. So you hit 4 to skip to the next one. eBay.inc, yeah, that looks like it's ours. So you hit 4. You continue your next scan. Hit number 3. And so you can see it's like it's found some additional hosts and stuff. And this process goes on for a while. The thing is, the nice thing is that you could save it in the database. So once you do this, it takes a little bit of knowledge about your domains, but chances are like once you see the domain, you're like, oh, okay, yeah, that makes sense. But what I would like to do eventually is to not only like say this is Facebook. Everybody knows what Facebook is. But let's say it's some other domain. It would be cool to be able to pull information from, you know, who is to see who the domain owner and stuff like that is. So if you're doing a pen test on somebody else, it would give you the additional information. And then you can also use this if you're a company and you're wanting, you know, we're pretty, I work at a large company, and people are creating websites that we don't even know about it sometimes. It's not supposed to work that way, but it does. And so if you have this whole database of all your host names out there and somehow somebody adds a new one, chances are you'll be able to find it with this. Recon NG also has, it has like some DNS brute forcing and a lot of other things. But this just augments that data. And so the other features that I'd like to add, I didn't get a chance, and there was a lot going on. But once we get all these web pages that we know that are ours, Recon NG also has an option to add domains. So this would automatically add it into the domains. It would automatically add all the hosts, obviously, host names. But I'd also have like an option for scanning. All of those same pages for the email address. Which I think there might be a module in there already that does something like that. But this one helps you make sure that you get all the domains if you don't know about them. And then, you know, add some Google hacking and stuff. You know, let's see. And then search for file extensions. I mean, like I said, a lot of this stuff has been done. A hundred times over. But this would just be a tool to embellish the data inside of it. You know, a tool that already exists. Which is cool about that is that other people who write modules can then use that same data. And that's our project. This is my coworker from Costa Rica over here. Sylvia. All right, thank you. Any questions? All right. You know, so I'm not actually using any kind of NMAP type of stuff. It's purely going at the webpage and scrubbing the webpage for information. But the thing is, is inside of Recon NG, you can run those NMAP scans and figure out what ports are open. So that's why, you know, I like it as a module. So, yeah. Thank you. All right, thanks. And there's the libraries. By the way, that are used inside of them. Oh, yeah. About to. Yeah. Yeah. Perfect. Awesome. That's nice. Okay, whenever the judges are ready, I will ask them to come up to announce in a break. Okay, they're going to go away and discuss things for a few minutes, and then they'll be back to announce the winner in a short time.