How to write a program with c that automatically captures ARP packets?

Updated on technology 2024-03-18
10 answers
  1. Anonymous users2024-02-06

    arp packages can be used in ms's platformsdk in ip helper dword sendarp (ipaddr destip, ipaddr srcip, pulong pmacaddr, pulong phyaddrlen);

    To send, it's easy to implement in c, I haven't tried it in c, you can try it, there is an example of vc in the link msdn, I don't know if my statement is right, dllimport("",charset=public extern static sendarp( destip,srcip,out pmacaddr,out phyaddrlen);

  2. Anonymous users2024-02-05

    Please refer to the development in C, but to call a sharpcap source** is also provided.

    It's just that it's a piece of software that sends ARP attacks, and it contains a method to get ARP.

  3. Anonymous users2024-02-04

    @echo off

    lable to loop through the command.

    ping -n pause seconds plus one >nul

    goto lable

    exit

  4. Anonymous users2024-02-03

    > this is VC's, hope it helps you.

  5. Anonymous users2024-02-02

    To capture packets, you need to change the NIC mode instead of the IP acquisition mode, and it is best to use a third-party packet capture SDK.

  6. Anonymous users2024-02-01

    Written with the C function random, the class is imported by default. We can initialize a random number generator in two ways; The first method does not specify a random seed, the system automatically selects the random seed of the previous work in the current tense: random ra=new random(); The second way is to specify an int argument as a random seed:

    int iseed=6; random ra=new random(iseed);Now we're going to use the method to generate random numbers.

    public virtual int next(int minvalue, int maxvalue);

    Usage:,20).

    Returns a random number within a specified range (in this case, between 1-20), which is the range you want to draw randomly.

    Here's the click to start event, click the button to appear a random number:

    private void button1_click(object sender, e)

    Displayed in label1.

    The main idea is that it is not very complete, and it can be modified slightly.

  7. Anonymous users2024-01-31

    Basically met your needs. The method is very primitive and you can refer to it.

    using system;

    using ;

    using ;

    using ;

    using ;

    using ;

    using ;

    using ;

    using ;

    using ;

    namespace traversal tool.

    int count = 0;

    arraylist temppath = new arraylist();

    arraylist finallypath = new arraylist();

    arraylist lastpath = new arraylist();

    private void button1_click(object sender, eventargs e)

    }private void button2_click(object sender, eventargs e)

    for(int i=0;i

  8. Anonymous users2024-01-30

    Yes, it can be done. 1. Use httpwebrequest in c to obtain the content of the web page, and then you can extract the content, and what content to extract can be extracted with regular expressions (with regex-like). 2. The keys to operate the web page can be handled by the webbrowser control in C, which can provide the interaction between C and the control in the web page.

  9. Anonymous users2024-01-29

    Theoretically, if the target does not provide a hyperlink to **quote**,It's basically impossible to do it.,Without copyright protection**, it's not big.,You collected it and it's nothing more than a fan to tell Chi Youshu to do a propaganda.。

  10. Anonymous users2024-01-28

    What brand of capture card.

Related questions
12 answers2024-03-18

Use the old red envelopes left over from the family, and the steps are as follows: >>>More

15 answers2024-03-18

Fresh, delicious, tempting, red, green, tender, watery, fresh, delicate, crisp, refreshing, fresh, verdant. >>>More

7 answers2024-03-18

For this, first of all, you have to be able to use macros, otherwise you have to be able to write VBA. >>>More

6 answers2024-03-18

618ip software has the function of IP and automatic IP access.