[oclug] 2nd try - scripting question

Ross Jordan rjordan at student.math.uwaterloo.ca
Fri Mar 23 17:31:00 EST 2001


> 
> I tried posting this message earlier but I don't see it in my mailbox at
> home so I'm resending it.  Sorry if it is a repeat.
> 
> 
> What I'm looking for is advice as to what to use to do the following:
> 
> I want to send an email message to a user on a machine who has a process
> running to check incoming email messages.  If the subject line contains
> the correct subject than the script would look in the email message for
> a command to run.  Say 'ls -l' the output of the command is then emailed
> back to the originator.
> 
> This small script will be put into a small paper I'm writing for school
> on a covert channel or shell incase you are wondering.
> 
> Any thoughts are welcomed.  Email me directly if you wish.
You could do this by having your .forward file pipe the
email to some shell script which could analyze it and then
run the program if appropriate.
See man .forward
There may well be a more elegant way to do this.

As another responder mentioned, be *very careful* with this.

-Ross


-- 
Decrypt your DVDs today! http://www.cs.cmu.edu/~dst/DeCSS/Gallery/
#define K(i)(x[i]^s[i+84])<<
unsigned char x[5],y,z,s[2048];main(n){for(read(0,x,5);read(0,s,n=2048);write(1
,s,n))if(s[y=s[13]%8+20]/16%4==1){int i=K(1)17^256+K(0)8,k=K(2)0,j=K(4)17^K(3)9
^k*2-k%8^8,a=0,b=0,c=26;for(s[y]-=16;--c;i/=2,j/=2)a=a*2^i&1,b=b*2^j&1;for(j=
127;++j<n;c=z+c>y)a^=a>>14,a=a>>8^(y=a^a*8^a<<6)<<9,b=b>>8^(z=b^b/8^b>>4^b>>12)
<<17,i=s[j],i="7Wo~'G_\216"[i&7]+2^"cr3sfw6v;*k+>/n."[i>>4]*2^i*257/8,s[j]=i^(i
&i*2&34)*6^z+c+~y;}}




More information about the OCLUG mailing list