Jump to content

My Email Spoof App (NOTHING SHOWS UP)


matv201

Recommended Posts

NOTHING SHOWS UP AT ALL, i am in desperate need of help!

<?php
$ip = $_SERVER["REMOTE_ADDR"];

$con=mysqli_connect("xxxxxxxx","xxxxxxxx","xxxxxxx","xxxxxxx");
$result = mysqli_query($con,"SELECT * FROM ip WHERE ip='$ip'");
$dbip = '';
while($row = mysqli_fetch_array($result))
{
$dbip = $row['ip'];
}
if ($dbip == ''){
mysqli_query($con,"INSERT INTO ip (ip, emails, member) VALUES ('" . $ip . "', '" . 5 . "', '" . 0 . "')");
}

$result = mysqli_query($con,"SELECT * FROM ip WHERE ip='$ip'");
$dbip = '';
$dbemails = '';
$dbmember = '';
while($row = mysqli_fetch_array($result))
{
$dbip = $row['ip'];
$dbemails = $row['emails'];
$dbmember = $row['member'];
}
    
if ($dbmember = 0){
    if ($dbemails = 0){
    $html = '
    <i>You are out of free spoofed emails.</i> <br>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    ';
    if (!isset($_REQUEST['action'])) {
        echo $html;
        }
    }
    if ($dbemails > 0){
        if ($dbemails == 1){
        $html = '<i>You have free 1 spoofed email left.</i><br>
        <form method="post" action="/send.php">
        <input type="hidden" value="send" name="action"/>
        Send To: <input type="text" value="someone@example.com" name="to"/><br>
        Send From: <input type="text" value="someone@example.com" name="from"/> <br>
        Subject: <input type="text" value="" name="subject"/><br>
        Message: <textarea name="message" cols="100" rows="10"></textarea><br>
        <input type="submit" value="Send Email" name="submit"/>    
        </form>
        <iframe width="853" height="480" src="//www.youtube.com/embed/-PzsiOqkuy8" frameborder="0" allowfullscreen></iframe>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
        ';
        if (!isset($_REQUEST['action'])) {
        echo $html;
        }
        }
        if ($dbemails == 2){
        $html = '<i>You have free 2 spoofed emails left.</i><br>
        <form method="post" action="/send.php">
        <input type="hidden" value="send" name="action"/>
        Send To: <input type="text" value="someone@example.com" name="to"/><br>
        Send From: <input type="text" value="someone@example.com" name="from"/> <br>
        Subject: <input type="text" value="" name="subject"/><br>
        Message: <textarea name="message" cols="100" rows="10"></textarea><br>
        <input type="submit" value="Send Email" name="submit"/>    
        </form>
        <iframe width="853" height="480" src="//www.youtube.com/embed/-PzsiOqkuy8" frameborder="0" allowfullscreen></iframe>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
        ';
        if (!isset($_REQUEST['action'])) {
        echo $html;
        }
        }
        if ($dbemails == 3){
        $html = '<i>You have free 3 spoofed emails left.</i><br>
        <form method="post" action="/send.php">
        <input type="hidden" value="send" name="action"/>
        Send To: <input type="text" value="someone@example.com" name="to"/><br>
        Send From: <input type="text" value="someone@example.com" name="from"/> <br>
        Subject: <input type="text" value="" name="subject"/><br>
        Message: <textarea name="message" cols="100" rows="10"></textarea><br>
        <input type="submit" value="Send Email" name="submit"/>    
        </form>
        <iframe width="853" height="480" src="//www.youtube.com/embed/-PzsiOqkuy8" frameborder="0" allowfullscreen></iframe>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
        ';
        if (!isset($_REQUEST['action'])) {
        echo $html;
        }
        }
        if ($dbemails == 4){
        $html = '<i>You have free 4 spoofed emails left.</i><br>
        <form method="post" action="/send.php">
        <input type="hidden" value="send" name="action"/>
        Send To: <input type="text" value="someone@example.com" name="to"/><br>
        Send From: <input type="text" value="someone@example.com" name="from"/> <br>
        Subject: <input type="text" value="" name="subject"/><br>
        Message: <textarea name="message" cols="100" rows="10"></textarea><br>
        <input type="submit" value="Send Email" name="submit"/>    
        </form>
        <iframe width="853" height="480" src="//www.youtube.com/embed/-PzsiOqkuy8" frameborder="0" allowfullscreen></iframe>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
        ';
        if (!isset($_REQUEST['action'])) {
        echo $html;
        }
        }
        if ($dbemails == 5){
        $html = '<i>You have free 5 spoofed emails left.</i><br>
        <form method="post" action="/send.php">
        <input type="hidden" value="send" name="action"/>
        Send To: <input type="text" value="someone@example.com" name="to"/><br>
        Send From: <input type="text" value="someone@example.com" name="from"/> <br>
        Subject: <input type="text" value="" name="subject"/><br>
        Message: <textarea name="message" cols="100" rows="10"></textarea><br>
        <input type="submit" value="Send Email" name="submit"/>    
        </form>
        <iframe width="853" height="480" src="//www.youtube.com/embed/-PzsiOqkuy8" frameborder="0" allowfullscreen></iframe>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
        ';
        if (!isset($_REQUEST['action'])) {
        echo $html;
        }
        }
    }
}

if (isset($_REQUEST['action'])) {
    $action = $_REQUEST['action'];
    if ($action == 'send') {
        if ($dbmember == 0){
            if ($dbemails > 0){
            $to = $_REQUEST['to'];
            $subject = $_REQUEST['subject'];
            $message = $_REQUEST['message'];
            $from = $_REQUEST['from'];
            $headers = "From:" . $from;
            mysqli_query($con,"INSERT INTO ip (ip, emails, member) VALUES ('" . $ip . "', '" . $dbemails - 1 . "', '" . 0 . "')");
            $ip = $_SERVER["REMOTE_ADDR"];

$con=mysqli_connect("xxxxxxxx","xxxxxxxx","xxxxxxxx","xxxxxxxx");
$result = mysqli_query($con,"SELECT * FROM ip WHERE ip='$ip'");
$dbip = '';
while($row = mysqli_fetch_array($result))
{
$dbip = $row['ip'];
}
if ($dbip == ''){
mysqli_query($con,"INSERT INTO ip (ip, emails, member) VALUES ('" . $ip . "', '" . 5 . "', '" . 0 . "')");
}

$result = mysqli_query($con,"SELECT * FROM ip WHERE ip='$ip'");
$dbip = '';
$dbemails = '';
$dbmember = '';
while($row = mysqli_fetch_array($result))
{
$dbip = $row['ip'];
$dbemails = $row['emails'];
$dbmember = $row['member'];
}
    
if ($dbmember = 0){
    if ($dbemails = 0){
    $html = '
    <i>You are out of free spoofed emails.</i> <br>
    <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
    <input type="hidden" name="cmd" value="_s-xclick">
    <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
    <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
    <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
    </form>
    ';
    }
    if ($dbemails > 0){
        if ($dbemails == 1){
        $html = '<i>You have free 1 spoofed email left.</i><br>
        <form method="post" action="/send.php">
        <input type="hidden" value="send" name="action"/>
        Send To: <input type="text" value="someone@example.com" name="to"/><br>
        Send From: <input type="text" value="someone@example.com" name="from"/> <br>
        Subject: <input type="text" value="" name="subject"/><br>
        Message: <textarea name="message" cols="100" rows="10"></textarea><br>
        <input type="submit" value="Send Email" name="submit"/>    
        </form>
        <iframe width="853" height="480" src="//www.youtube.com/embed/-PzsiOqkuy8" frameborder="0" allowfullscreen></iframe>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
        ';
        }
        if ($dbemails == 2){
        $html = '<i>You have free 2 spoofed emails left.</i><br>
        <form method="post" action="/send.php">
        <input type="hidden" value="send" name="action"/>
        Send To: <input type="text" value="someone@example.com" name="to"/><br>
        Send From: <input type="text" value="someone@example.com" name="from"/> <br>
        Subject: <input type="text" value="" name="subject"/><br>
        Message: <textarea name="message" cols="100" rows="10"></textarea><br>
        <input type="submit" value="Send Email" name="submit"/>    
        </form>
        <iframe width="853" height="480" src="//www.youtube.com/embed/-PzsiOqkuy8" frameborder="0" allowfullscreen></iframe>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
        ';
        }
        if ($dbemails == 3){
        $html = '<i>You have free 3 spoofed emails left.</i><br>
        <form method="post" action="/send.php">
        <input type="hidden" value="send" name="action"/>
        Send To: <input type="text" value="someone@example.com" name="to"/><br>
        Send From: <input type="text" value="someone@example.com" name="from"/> <br>
        Subject: <input type="text" value="" name="subject"/><br>
        Message: <textarea name="message" cols="100" rows="10"></textarea><br>
        <input type="submit" value="Send Email" name="submit"/>    
        </form>
        <iframe width="853" height="480" src="//www.youtube.com/embed/-PzsiOqkuy8" frameborder="0" allowfullscreen></iframe>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
        ';
        }
        if ($dbemails == 4){
        $html = '<i>You have free 4 spoofed emails left.</i><br>
        <form method="post" action="/send.php">
        <input type="hidden" value="send" name="action"/>
        Send To: <input type="text" value="someone@example.com" name="to"/><br>
        Send From: <input type="text" value="someone@example.com" name="from"/> <br>
        Subject: <input type="text" value="" name="subject"/><br>
        Message: <textarea name="message" cols="100" rows="10"></textarea><br>
        <input type="submit" value="Send Email" name="submit"/>    
        </form>
        <iframe width="853" height="480" src="//www.youtube.com/embed/-PzsiOqkuy8" frameborder="0" allowfullscreen></iframe>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
        ';
        }
        if ($dbemails == 5){
        $html = '<i>You have free 5 spoofed emails left.</i><br>
        <form method="post" action="/send.php">
        <input type="hidden" value="send" name="action"/>
        Send To: <input type="text" value="someone@example.com" name="to"/><br>
        Send From: <input type="text" value="someone@example.com" name="from"/> <br>
        Subject: <input type="text" value="" name="subject"/><br>
        Message: <textarea name="message" cols="100" rows="10"></textarea><br>
        <input type="submit" value="Send Email" name="submit"/>    
        </form>
        <iframe width="853" height="480" src="//www.youtube.com/embed/-PzsiOqkuy8" frameborder="0" allowfullscreen></iframe>
        <form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_blank">
        <input type="hidden" name="cmd" value="_s-xclick">
        <input type="hidden" name="hosted_button_id" value="39FY5PEXR53X4">
        <input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
        <img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
        </form>
        ';
        }
    }
}
            mail($to,$subject,$message,$headers);
            echo "<b><i>Email Sent</i></b> <br>".$html;
            }
            if ($dbemails = 0){
            echo "<b><i>COULD NOT SEND EMAIL - NO FREE EMAILS REMAINING</i></b><br>".html;
            }
        }
        if ($dbmember == 1){
        $to = $_REQUEST['to'];
        $subject = $_REQUEST['subject'];
        $message = $_REQUEST['message'];
        $from = $_REQUEST['from'];
        $headers = "From:" . $from;
        mail($to,$subject,$message,$headers);
        echo "<b><i>Email Sent</i></b> <br>".$html;
        }
    }
}
?>
Edited by matv201
Link to comment
Share on other sites

you could replace all those forms and IF's with just one, and use the variable to show the number of emails left...

 

instead of all those IF $dbemails == 1, $dbemails == 2, $dbemails == 3, $dbemails == 4 ... just do something like:

 

$html = '<i>You have free '.$dbemails.' spoofed emails left.</i><br> ...
 

 

(it should say 'x free spoofed emails', not 'free x spoofed emails')

Edited by WebStyles
Link to comment
Share on other sites

So I'm not alone in my paranoia.

 

To the OP - really man?  This is what you want to accomplish with your skills?  You want to incorporate yourself into the mass of idiots who think that the 'net is theirs to tamper with and use for financial and other profit?  Add to the sea of spam generated by people with brains but no common sense?

Link to comment
Share on other sites

oh c'mon guys... this forum is about the code to get a job done, not the moral reasons behind it...

Well no, actually this forum does (attempt to) have a conscience. We aren't here to help people make the internet a worse place. Just like we aren't here to do people's work for them. That's like a scientist claiming they did nothing wrong for creating the next wmd or some killer virus, claiming it's not his fault someone else abused it.

 

I prefer not to judge people based on a piece of code.

But you aren't judging them solely on a piece of code. You know damn well what they want to do with it, and you're teaching them anyway. It's like someone asking you how to shoot a gun or to buy a gun from you and they tell you they want to learn/buy because they want to murder someone. You are no longer just teaching them to use a gun. You are no longer just selling them a gun. Because you know what their intentions for it are, you are now responsible for more than just teaching/selling. You are now an accomplice or aiding and abetting them. And even if you disagree that there are moral obligations and responsibilities for that, then at a minimum you have to acknowledge that there are legal ramifications. Because there are. And saying "I didn't pull the trigger" isn't a good enough defense in the legal world. It may not land you the same punishment as the trigger puller but it will definitely not walk away free and clear.

Link to comment
Share on other sites

Jesus, didn't mean to spark so many feelings... Hey, I'm not the one building the system, I just enjoy looking for bugs in code. If you're so against it, why don't you just delete this post instead of having a go at me? (and to be fair, comparing a spoofed email with a murder is a little over the top...) 'nuff said here. I won't comment any more on this, it's just getting silly.

Link to comment
Share on other sites

Even if we are not all professional devs (or aspire to be), we should all have some integrity. Spoofing PayPal is directly related to identity theft and in many cases grand theft. In some countries they chop off your fingers or hands if you steal. Stealing is serious. Let's not be accomplices.

Link to comment
Share on other sites

The OP is a kid (watch the video).  Based on the voice, I would guess around 12 or thereabouts.  Matt, let me say this to you, from a fathers perspective:  Think before you act.  What you are building I fully understand seems like an awesome idea to you, but it's been done time and time again. 

 

Based on the speed that your page loaded in your browser, I'm going to guess shared hosting. 

 

*did some research -- back*

 

Ok, kid. you don't want any part of the hosting you're with.  2 reasons why: no email provider in their right mind will allow mail from that hosting.  They are full, and I mean chock full of spam sites.  They will be black listed across the board, and any information you provided to sign up is most likely being used for nefarious means.

 

Also, sites like this get flagged by 3-letter agencies so fast it is amazing you don't see them outside your house right now.  Don't worry, that was  a figure of speech.  Basically, people who host on this type of site are usually people like Dotcom (but less rich).

 

Even thoug I aplaud your first real project, I would recommend that you do something....less spammy.  If you need pointers on what project to take up, let me know.  I'll help you code one, even.

 

Jon

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.