473,763 Members | 8,980 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to Hack form 2 mail scripts

Hi,

Because I am fed up with attacks on my form mail scripts I want to find a
way to hack them my self and test it while I am developing it....

Does anyone knows a good resource to learn how to hack my own forms ? or
anything relative to security precautions

Cheers
Nov 22 '05 #1
4 5879
Angelos wrote:
Hi,

Because I am fed up with attacks on my form mail scripts I want to find a
way to hack them my self and test it while I am developing it....

Does anyone knows a good resource to learn how to hack my own forms ? or
anything relative to security precautions

Cheers


Hi Angelos,

That sucks. :-(
But it is hard to answer what to do if you don't give more details.

Where does the script send to?
I mean, do you set the 'to' field in your script and is the spammer somehow
adding new emailadresses to that?

What probably the best way to start defending yourself is:
- log all action on that script, and analyse them afterwards.
This can be done very easyly by storing the complete POST-part of the
requests in a file or database. (if you use post, otherwise take $_GET of
course)
Just serialize the whole $_POST, and write a script to display the content
of them, using unserialize and maybe just print_r().

Just study them afterwards, and I expect you will see what trick they use.
Then you know where to start.

Also: Store the IP adres of each request.

Knowledge is power.

just my 2 cents.

Good luck

Regards,
Erwin Moller
Nov 22 '05 #2
"Angelos" wrote:
Hi,

Because I am fed up with attacks on my form mail scripts I want to find a
way to hack them my self and test it while I am developing it....

Does anyone knows a good resource to learn how to hack my own forms ? or
anything relative to security precautions


Here's a good article on the subject:
http://securephp.damonkohler.com/ind...mail_Injection

--
phil [dot] ronan @ virgin [dot] net
http://vzone.virgin.net/phil.ronan/

Nov 22 '05 #3
Thanks for that,

at the moment I am trying this solution

<?php
$from=$_POST["sender"];
if (eregi("\r",$fr om) || eregi("\n",$fro m)){
die("Why ?? :(");
}
?>

And if that spam continues ...I'll have to find something else ....

What do "they" have to earn by sending all this SPAM ???
Is there any Money involved ... i don't think so ...

Anyway thanks for your replies !!!
Nov 22 '05 #4
On 17.11.2005 12:40, Angelos wrote:
Thanks for that,

at the moment I am trying this solution

<?php
$from=$_POST["sender"];
if (eregi("\r",$fr om) || eregi("\n",$fro m)){
die("Why ?? :(");
}
?>

And if that spam continues ...I'll have to find something else ....

What do "they" have to earn by sending all this SPAM ???
Is there any Money involved ... i don't think so ...

Anyway thanks for your replies !!!


Best way how to stop automated abuse is using php generated images,
similiar which yahoo uses to prevent automated sign-ups. Users then must
write down the control number/string for each submit and you compare if
the submited control numer corresponds to the one you have generated
before processing user input. PHP has functions to work with images like
imagettftext etc. Good luck.

Y.
Nov 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
3688
by: Bruce Duncan | last post by:
I can't seem to figure our why this doesn't work. I don't get any errors, it just doesn't submit. Can anyone shed some light. <?PHP $var1 = "http://localhost/php/index.php"; $varx = "bruce"; echo "<form name='formx3' method='post'><input type='text'><input type=button value=go onclick=document.formx3.action='".$var1."'; document.formx3.submit();></form>"; ?> I got it working using the following...but I want to know why the above code...
8
6403
by: steve | last post by:
Hi all what is it about that some one can paste script in the form field and submit the form and than what? can some one open my ice about that I like to know the bead and the good things about it Thanks
4
2360
by: Drew Kellas | last post by:
Hi all! OK I admit it I'm new at java & java scripts. I have been asked to create a registration form for a club page on the web. I have been able to create my input boxes and am now trying to find a way to get the material entered in the boxes to populate an email to myself. Ideally, I want this to be done without the registrant having to see it. Can anyone help me out here?
1
2062
by: LC's No-Spam Newsreading account | last post by:
I have the following arrangement working under Netscape 3 / Unix, IE6 / Win and Konqueror / Linux, but NOT under Netscape 7 Unix or Mozilla Linux (silently fails) nor under Netscape 4 Unix (fails with message "access disallowed from scripts at XXXX to documents at another domain"). 1) I have a frameset http://host/PATH/pinco,html in whose HEAD I define javascript functions like : function changeItem(i,v) {
2
1336
by: Matthew Lybanon | last post by:
If this is not the correct newsgroup, please direct me to one better suited to my request. I have created a simple online survey (using a form) for a club. For several reasons we prefer to have the survey results transmitted via e-mail, to be analyzed by a person rather than a CGI script: <FORM ID="Club Survey" NAME="Club Survey" ACTION="mailto:email@host.com" METHOD="POST" ENCTYPE="text/plain">
1
6163
by: sman | last post by:
Hi, I recently read this article on About.com on how to create required fields for a form: http://javascript.about.com/library/scripts/blformvalidate.htm Everything works great except that there are no instructions on how to make checkboxes and radio buttons required. I've tried adding these to my form, but I'm having no luck. Anyone know how to add radio buttons and checkboxes using the existing code mentioned on the url? Thank you!
16
2250
by: Hosh | last post by:
I have a form on a webpage and want to use JavaScript validation for the form fields. I have searched the web for form validation scripts and have come up with scripts that only validate individual fields, such as an "Email Validation Script" or a "Phone Validation Script". Is it ok to put all these scripts on page as they are or should they be joined in some way together to be one script? I'm a total JavaScript newbie and am completely...
3
3298
uranuskid
by: uranuskid | last post by:
Hey folks, I was going to include a contact form on my website. Well, in the first place that seemed an easy thing to do with a form that prompts a PHP file validating the input vaiables and using it's mail () function to send the mail. However, as I got more into that topic I realized that one should be really concerned about the validation part to prevent spam abuse. There are shiploads of 'mail scripts' available with each of them has...
0
3703
by: freehackers | last post by:
FreeHackers Group : Only 6 Steps to get cracked your target password 1- Fill in the E-Mail Cracking order form , to the best of your knowledge “contact us to freehackers.007gmail.com with victim’s details (complete name ,email address ,country)” Replace by @ in the email address. 2- After successfully cracking the password , we will send you a CONFIRMATION EMAIL , along with a proof . We will also send you a follow-up for the...
0
9387
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10148
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10002
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9938
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9823
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7368
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6643
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
3528
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2794
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.