Call an NC bat shell for sniffing [allyesno]

Source: Internet
Author: User

Term: freexploit

Author: allyesno

Date: 2005-06-21

Codz:


@ Echo off
: Ncfoever 1.0 bulid by allyesno
: Can be used to capture TCP port data packets
CLS

:/* Parameter judgment and usage instructions */

Set COUNT = 1
If/I "% 1" = "-Look" Goto nclook
If/I "% 1" = "-log" Goto nclog
Echo.
Echo ===================================================== ======================================
Echo ncforever 1.0 Build by allyesno
Echo function: it can be used to capture TCP port data.
Echo ===================================================== ======================================
Echo usage: ncforever-Look monitoring mode (Real-time Monitoring)
Echo usage: ncforever-log record mode (hkip. log record IP hkpass. log record transfer data)
Goto end

:/* Monitoring and recording module */

: Nclook
Title sniffing monitoring mode http://blog.csdn.net/freexploit
Echo ===================================== press Ctrl + C ====== ======================================
Echo 1st sniffing start -- ^> % date % time %
Echo.
NC-l-P 80
Echo.
Echo.
Echo 1st sniffing ended -- ^> % date % time %
: NC
Echo.
Echo ===================================== press Ctrl + C ====== ======================================

:/* Set/A count + = 1 the new counting expression method in bat */

Set/A count + = 1
Echo % count % sniffing start -- ^> % date % time %
Echo.
NC-l-P 80
Echo.
Echo.
Echo % count % end of sniffing -- ^> % date % time %
Goto NC
: End
Goto endx
: Nclog
Record pattern http://blog.csdn.net/freexploit
Echo ===================================== press Ctrl + C ====== ======================================
Echo 1st record start -- ^> % date % time %
Echo.
NC-V-l-P 80 2> hkip. Log 1> hkpass. Log
Echo.> hkpass. Log
Echo.
Echo 1st record ended -- ^> % date % time %
: NCX
Echo.
Echo ===================================== press Ctrl + C ====== ======================================
Set/A count + = 1
Echo % count % record start -- ^> % date % time %

: // Store the NC sniffing records to hkip. log and hkpass. Log respectively.
: // Handle 2 and handle 1 are used here. Because each software handle has different functions, please debug it by yourself.
: // For the default handle, see Windows Help.

NC-V-l-P 80 2> hkip. Log 1> hkpass. Log
Echo.> hkpass. Log
Echo.
Echo % count % record ended -- ^> % date % time %
Goto NCX

:/* Program ended */

:endx

Attachment: ncforever.rar [required0Community meta download]
This file has been downloaded 0 times.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.