Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- boundry1=$(cat /dev/random|tr -cd '[:alnum:]'|head -c 20)
- id2=$(cat /dev/random|tr -cd '[:digit:]'|head -c 20)
- boundry2=$(cat /dev/random|tr -cd '[:alnum:]'|head -c 20)
- sendmail -t <<EOT
- FROM: This guy <[email protected]>
- TO: That guy <[email protected]>
- SUBJECT: Test
- MIME-Version: 1.0
- Content-Type: multipart/mixed;
- boundary="${boundry1}"
- This is a multi-part message in MIME format.
- --${boundry1}
- Content-Type: multipart/related;
- boundary="${boundry2}"
- --${boundry2}
- Content-Type: text/html; charset=utf-8
- Content-Transfer-Encoding: 7bit
- <html>
- <head>
- <meta http-equiv="content-type" content="text/html; charset=UTF-8">
- </head>
- <body bgcolor="#ffffff" text="#000000">
- <img src="cid:${id2}" alt="">
- </body>
- </html>
- --${boundry2}
- Content-Type: image/png;
- name="diapericonblank.png"
- Content-Transfer-Encoding: base64
- Content-ID: <${id2}>
- Content-Disposition: inline;
- filename="diapericonblank.png"
- $(base64 /home/pouar/Pictures/diapericonblank.png)
- --${boundry2}--
- --${boundry1}
- Content-Type: application/x-lzma;
- name="diapericoncde.pm.lzma"
- Content-Transfer-Encoding: base64
- Content-Disposition: attachment;
- filename="diapericoncde.pm.lzma"
- $(base64 /home/pouar/Pictures/diapericoncde.pm.lzma)
- --${boundry1}--
- EOT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement