This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

sending an email (again)

Old posts that have not been replied to for several years.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

sending an email (again)

Post by metroid »

Code: Select all

set emailtosendtoo "metroidz@gmail.com"
set sendmailprogram "/usr/sbin/sendmail"

bind msg m sendmail sendanemail

proc sendanemail { nick uhost hand arguments } {
global emailtosendtoo sendmailprogram 
                set mailme [open "|$sendmailprogram -t" w]
                puts $mailme "To: $emailtosendtoo"
                puts $mailme "From: $::botnick\@Quakenet"
                puts $mailme "Subject: blah test."
                puts $mailme "Test test test.\n"
                puts $mailme "blahblah blah."
                puts $mailme "cows go m00"
                puts $mailme "Hi, how are you?"
                close $mailme
	putlog "Moo!"
}

This should work shouldnt it? Yet when i try it, i get no email :(
Last edited by metroid on Tue Nov 23, 2004 10:02 am, edited 1 time in total.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

experiment in your shell first
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

...and read your error messages. (the one about the missing variable)
Have you ever read "The Manual"?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

There are no errors, but i just don't recieve the email. As i found sendmail on the shell but apparently i can't get it to work, I've already tested it on my shell :P
User avatar
KrzychuG
Master
Posts: 306
Joined: Sat Aug 16, 2003 2:51 pm
Location: Torun, Poland
Contact:

Post by KrzychuG »

There should be at least 2 errors about missing sendmail program and emailtosendtoo variables in sendemail procedure ;)
Que?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Fine edited, I was using different variables when i tested it thats why the global's didnt work

There are no errors when i'm testing it but the emails never arrive, When i close the mailme, does it send or what is it doing then?
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

try to use the standard UNIX mail(1) utility (which is basically sendmail wrapper) to send mail to yourself; if this doesn't work, there is nothing you can do - complain to your admin to fix it
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

I've send an email to my shell admin and ill try to find out how to make it work :)
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

Well finally, i got it to work, But now, Is there any way i could make an eggdrop decrypt a password and send it in an email?

I'm working a command that works like Q's requestpassword.

/msg <bot> requestpassword <email>

*Bot sends an email with the password in it

But to my knowledge, there is no command that does this? correct?
User avatar
arcane
Master
Posts: 280
Joined: Thu Jan 30, 2003 9:18 am
Location: Germany
Contact:

Post by arcane »

MeTroiD wrote:But to my knowledge, there is no command that does this? correct?
you mean decrypting passwords?
if you don't have one-way-encryption or if you want to use brute-force, it is possible ;)
other possibility: first send the password and then encrypt it.
aVote page back online!
Check out the most popular voting script for eggdrop bots.

Join the metal tavern!
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you can't decrypt eggdrop passwords (we're not talking cracking here), it's a one-way blowfish hash
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

I heard someone did crack eggdrop passwords though, and he used tcl for it :o
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

MeTroiD wrote:I heard someone did crack eggdrop passwords though, and he used tcl for it :o
the password he cracked must have been "abcd" or similar
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

No, he could use whatever code he was using to crack any password, as blowfish always gives the same encryption to a password
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

crack any password?

now that's what they call an urban legend...

I give you my encrypted eggdrop password, you give it to your friend, he cracks it, you break into my bot, I paypal you 1000 dollars. Deal? ;)
Locked