Sign in to follow this  
Followers 0
epicfail

email register before script starts

12 posts in this topic

is there away to make it so that some 1 has to register there email before they run my script so it sends there email addy to my email or something. Also would i be able to make it once they register they get emailed a code frommy email and have to enter that code in to start? codes different 4 every email?

Share this post


Link to post
Share on other sites



To be honest if you can't write something to do this, you haven't got something worth protecting.

However, there are a couple of options:

1. Hardcode passwords into the script and hand the script out and give passwords with the script. Anyone knowing the password(s) could hand it out with the script.

2. Write some sort of algorithm that links an email to a password (like XORing them then transforming that with something to produce an expected result). Someone could share both details and the script. Or someone could deduce the algorithm and replicate it.

3. Have some sort of authoritative server, each time the script is run, it sends the credentials to the server which then sends an expected result result back if the credentials are correct. Most secure, especially if combined with #2 and include some anti-replay-attack code (XOR all data with a session-id or something similar).

Share this post


Link to post
Share on other sites

im not really trying to protect the script. I just want to make it so i have the email of the people using my program so i can send them emails when i have updates or emails saying anything. I wanted to have the code thing so people dont put in random emails if there is that code then there is more chance people put in there real email.

Share this post


Link to post
Share on other sites

u mean like a webpage server? yeah i have one there is heaps of free ones on the net.

Share this post


Link to post
Share on other sites

yeah sure do

Share this post


Link to post
Share on other sites

Then the AutoIt script will do this:

$email = InputBox("","Enter your email")
InetGet("http://yourwebsite/regmail.php?email=" & $email)

Then the PHP file regmail.php will do this:

$email = $_GET['email'];
$fh = fopen("mails.txt", 'a');
fwrite($fh, $email . '\n'); // not sure about this newline but whatever lol
fclose($fh);

Share this post


Link to post
Share on other sites

thanks. How would i make it so they need to enter in a code that my email sends them after they put in there password. or a activate link or something like that.

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

AutoIt script stays the same.

PHP file:

// Determine type of request
  // Process email store request
     // Generate random activation number
     // Store email and activation number in database
     // Send mail message containing activation link
  // Process email activation request
     // Match the activation number with an email address
     // Mark the email address as valid
     // Output to user that subscription was success
Edited by Manadar

Share this post


Link to post
Share on other sites

i dont really understand that sorry

Share this post


Link to post
Share on other sites

The most important thing that you need to be as a programmer (and entrepreneur) is a do-er. Someone that is not afraid to try new things out. So go ahead and learn PHP and MySQL. Find some tutorials on Google, and get going!! Just go out and build it. :D

Good luck!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0