In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Open source tool parameters for Blat-windows cmd command line script SMTP mode email are described in detail
The blat tool can be used to send mail from the command line, so it may be used to steal computer files.
Therefore, (1) it is not recommended to install and deploy to the system32 directory, nor to set environment variables; it is recommended that the scripts you write should be placed in the same directory as the blat tool.
(2) this tool will be reported by 360 and other security software, so trust the folder before installation and deployment.
(3) the English version comes from the official website, and the Chinese version does not guarantee the accuracy of translation for understanding, learning and comparison.
Syntax:
Blat-to [optional switches (see below)]
Blat-install [
[[]
: set server, sender, number of tries and port for profile
(and may be replaced by'-')
Port defaults are SMTP=25, NNTP=119, POP3=110
Default profile can be specified with a'-'
Username and/or password may be stored to the registry
Order of options is specific
Use-installNNTP for storing NNTP information
Use-installPOP3 for storing POP3 information
(sender and try are ignored, use'-'in place of these)
-- set server address, mailbox, number of failed attempts, port number, user name and password of mailbox
-- if the port number is not set, default: SMTP=25, NNTP=119, POP3=110
-- username and password can be saved in the registry.
-The Basics (mail and recipient)-
: file with the message body to be sent
If your message body is on the command line, use a hyphen (-)
As your first argument, and-body followed by your message
If your message will come from the console/keyboard, use the
Hyphen as your first argument, but do not use-body option.
-- the path to the mail content file; if it is the content of the command line, start with-body
Personally, I think it is better to use the file path.
-of: text file containing more options (also-optionfile)
-to: recipient list (also-t) (comma separated)-recipient list; comma separated; abbreviated "- t". -tf: recipient list filename-- recipient list file path.
-cc: carbon copy recipient list (also-c) (comma separated)
-- CC list; separated by commas; abbreviated "- c".
-cf: cc recipient list filename
-- the path of the CC list file.
-bcc: blind carbon copy recipient list (also-b) (comma separated)
-- BCC list; comma separated; Jane "- b".
-bf: bcc recipient list filename
-- BCC list file path.
-maxNames: send to groups of number of recipients
-ur: set To: header to Undisclosed Recipients if not using the-to and-cc options
-subject: subject line, surround with quotes to include spaces (also-s)-- email subject; abbreviation "- s";-ss: suppress subject line if not defined
-sf: file containing subject line-- contains the email content of the subject;-body: message body, surround with quotes to include spaces-- command line email content
-sig: text file containing your email signature
-- signature content file path
-tag: text file containing taglines, to be randomly chosen
-ps: final message text, possibly for unsubscribe instructions
-Registry overrides (sending parameter)-p: send with server, user, and port defined in
: use username and password if defined in
-profile: list all profiles in the Registry
-server: specify SMTP server to be used (optionally, addr:port)-- Server address;-serverSMTP
: same as-server
-serverNNTP
: specify NNTP server to be used (optionally, addr:port)
-serverPOP3
: specify POP3 server to be used (optionally, addr:port)
When POP3 access is required before sending email
-f: override the default sender address (must be known to server)-sender's mailbox;-I: a 'From:' address, not necessarily known to the server
-port: port to be used on the SMTP server, defaults to SMTP (25)
-- Port number; generally put it in server
-portSMTP: same as-port
-portNNTP: port to be used on the NNTP server, defaults to NNTP (119)
-portPOP3: port to be used on the POP3 server, defaults to POP3
-u: username for AUTH LOGIN (use with-pw)-user;-pw: password for AUTH LOGIN (use with-u)-password
-pu: username for POP3 LOGIN (use with-ppw)
-ppw: password for POP3 LOGIN (use with-pu)
-Miscellaneous RFC header switches (interactive settings)-
-organization
: Organization field (also-o and-org)
-ua: include User-Agent header line instead of X-Mailer
-x
Custom 'Xmuri' header. Eg:-x "X-INFO: Blat is Great!"
-noh: prevent X-Mailer/User-Agent header from showing Blat homepage
-noh3: prevent X-Mailer header entirely
-d: request disposition notification
-r: request return receipt
-charset: user defined charset. The default is ISO-8859-1
-A1: add custom header line at the end of the regular headers
-a2: same as-A1, for a second custom header line
-dsn: use Delivery Status Notifications (RFC 3461)
N = never, s = successful, f = failure, d = delayed
Can be used together, however N takes precedence
-hdrencb: use base64 for encoding headers, if necessary
-hdrencq: use quoted-printable for encoding headers, if necessary
-priority: set message priority 0 for low, 1 for high
-Attachment and encoding options (attachments and settings)--
-attach: attach binary file (s) to message (filenames comma separated)-- attachment is the binary file path
-attacht: attach text file (s) to message (filenames comma separated)
-- attachment is the path of the text file
-attachi: attach text file (s) as INLINE (filenames comma separated)
-embed: embed file (s) in HTML. Object tag in HTML must specify
Content-id using cid: tag. Eg:
-af: file containing list of binary file (s) to attach (comma separated)
-atf: file containing list of text file (s) to attach (comma separated)
-aef: file containing list of embed file (s) to attach (comma separated)
-base64: send binary files using base64 (binary MIME)
-uuencode: send binary files UUEncoded
-enriched: send an enriched text message (Content-Type=text/enriched)
-unicode: message body is in 16-or 32-bit Unicode format
-html: send an HTML message (Content-Type=text/html)
-alttext: plain text for use as alternate text
-alttextf: plain text file for use as alternate text
-mime: MIME Quoted-Printable Content-Transfer-Encoding
-8bitmime: ask for 8bit data support when sending MIME
-multipart
: send multipart messages, breaking attachments on
KB boundaries, where is per 1000 bytes
-nomps: do not allow multipart messages
-NNTP specific options (NNTP specific parameter option)-
-groups
: list of newsgroups (comma separated)
-Other options-
-h: displays this help (also -, /?,-help or / help)
-Q: suppresses all output to the screen
-- turn off echo; similar to echo off
-debug: echoes server communications to a log file or screen (overrides-q if echoes to the screen)
-log: log everything but usage to
-timestamp: when-log is used, a timestamp is added to each log line
-ti: set timeout to 'n'seconds. Blat will wait 'n'seconds for
Server responses
-try: how many times blat should try to send (1 to 'INFINITE')
-binary: do not convert ASCII | (pipe, 0x7c) to CrLf in the message
Body
-hostname: select the hostname used to send the message via SMTP
This is typically your local machine name
-raw: do not add CR/LF after headers
-delay: wait x seconds between messages being sent when used with
-maxnames or-multipart
-comment: use this character to mark the start of commments in
Options files and recipient list files. The default is
-superdebug: hex/ascii dump the data between Blat and the server
-superdebugT: ascii dump the data between Blat and the server
Note that if the'- I 'option is used, is included in' Reply-to:'
And 'Sender:' fields in the header of the message.
Optionally, the following options can be used instead of the-f and-I
Options:
-mailfrom The RFC 821 MAIL From: statement
-from The RFC 822 From: statement
-replyto The RFC 822 Reply-To: statement
-returnpath The RFC 822 Return-Path: statement
-sender The RFC 822 Sender: statement
For backward consistency, the-f and-i options have precedence over these
RFC 822 defined options. If both-f and-i options are omitted then the
RFC 821 MAIL FROM statement will be defaulted to use the installation-defined
Default sender address.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.