403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.216.238
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/sysutils/monitord/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/sysutils/monitord/files/patch-mail.c
--- mail.c.orig	2003-08-21 18:44:20 UTC
+++ mail.c
@@ -47,11 +47,11 @@ int mail ( char *address, char *eserver, char *subject
 	username = (char *) malloc ( (size_t) _BUFSIZE ); // init the username buffer
 	hostname = (char *) malloc ( (size_t) _BUFSIZE ); // init the hostname buffer
 	thisname = (char *) malloc ( (size_t) _BUFSIZE ); // init the hostname buffer
-	bzero (buf, sizeof (buf) );
-	bzero (token, sizeof (token) );
-	bzero (username, sizeof (username) );
-	bzero (hostname, sizeof (hostname) );
-	bzero (thisname, sizeof (thisname) );
+	bzero (buf, sizeof (*buf) );
+	bzero (token, sizeof (*token) );
+	bzero (username, sizeof (*username) );
+	bzero (hostname, sizeof (*hostname) );
+	bzero (thisname, sizeof (*thisname) );
 
 	strncpy (buf, address, _BUFSIZE);
 	username = strtok (buf, "@");
@@ -81,13 +81,13 @@ int mail ( char *address, char *eserver, char *subject
 	read (serversd, buf, _BUFSIZE);
 
 	// Set "MAIL FROM"
-	sprintf(buf, "MAIL FROM: monitord-notification@%s\n", thisname);
+	sprintf(buf, "MAIL FROM: <monitord-notification@%s>\n", thisname);
 	write(serversd, buf, strlen(buf));
 	read (serversd, buf, _BUFSIZE);
 
 	// set "RCPT TO"
 	bzero (buf, _BUFSIZE );
-	sprintf(buf, "RCPT TO: %s\n", address);
+	sprintf(buf, "RCPT TO: <%s>\n", address);
 	write(serversd, buf, strlen(buf));
 	read (serversd, buf, _BUFSIZE);
 
@@ -97,17 +97,17 @@ int mail ( char *address, char *eserver, char *subject
 	read (serversd, buf, _BUFSIZE);
 
 	// Set "FROM"
-	sprintf(buf, "FROM: monitord-notification@%s\n", thisname);
+	sprintf(buf, "From: <monitord-notification@%s>\n", thisname);
 	write(serversd, buf, strlen(buf));
 
 	// set "TO"
 	bzero (buf, _BUFSIZE );
-	sprintf(buf, "TO: %s\n", address);
+	sprintf(buf, "To: <%s>\n", address);
 	write(serversd, buf, strlen(buf));
 
 	// set "SUBJECT"
 	bzero (buf, _BUFSIZE );
-	sprintf(buf, "SUBJECT: %s\n", subject);
+	sprintf(buf, "Subject: %s\n", subject);
 	write(serversd, buf, strlen(buf));
 
 	// send actual data

Youez - 2016 - github.com/yon3zu
LinuXploit