Showing a Craigslist scammer who's boss using Python [video]
youtube.com
youtube.com
In all likelihood he tries every single entry he gets against the top 100 juiciest sites (banking, email, etc), and records all successful hits.
#!/usr/bin/env python3
I bet your Python2 script will run on Python3.
Besides the obvious things like print, which will just cause an error, there's behavioral changes, like with division and range, that may introduce more insideous bugs.
Better to read up on the difference first and use a tool.
$ python3
>>> 1/2
0.5
VS $ python2.7
>>> 1/2
0
which can cause a great load of bugs if you're just porting some existing code.int//int=int instead of int/int=float.
I've been aware of the bytes/string split for a long time since it's probably Python 3's most prominent change, so I certainly wasn't surprised by it. The surprising part for me (after having read complaints about this change over the years) is that I haven't had any trouble with it.
Also, my guess is most users don't have that pattern of password...
Another half an hour to deal with the IP address stuff.
But, I think the purpose of the video was to show how to use the requests library.
It's interesting to look at from the other perspective though, normally we're on the side trying to prevent malicious users and in this thread we're thinking as the 'malicious' user.
The "engineer" didn't check this, which he could have easily done by simply refreshing the page. But if the scammer did have any sort of protection, the engineer would have had a lot more work in it for him, having to scrape the page.. so maybe he purposely ignored this red flag.
But that’s just what my instincts tell me based on the time spent investigating, the amount of useful snippets, and the lack of typos and errors while coding.
Although I do think, for a learning video, that he missed out on a lot of opportunity to explain such things as I mentioned.
Also, there's some funny exposed PHP code sent along:
<?php
session_start();
?>
And some packed javascript that does nothing because it's "commented out" with <!-- ... --> inside the <script> tags, meaning it has syntax errors.'very common name' + 1 digit @yahoo.com generates a list almost completely of real email addresses...
Spammers don't care about cleaning their lists... So he just helped the spammer do his job, involving a few hundred unrelated victims.
Other posters talking about password reuse are really confused, there’s essentially no chance someone would waste sms spam on such a silly venture.
#2600