4
4
4utka_pyan2017-06-27 09:06:19
go
4utka_pyan, 2017-06-27 09:06:19

What package, functions to use for traffic sniffer?

Windows OS. In particular interested in http-traffic.
You probably need to use the package import "net/http "
Construction used

func main() {
    http.HandleFunc("/", handler)
    http.ListenAndServe(":8080", nil)
}

From this moment questions begin:
1) Is it correct to use ListenAndServe for my purposes as in the example?
2) I apparently don’t need HandleFunc, while catching all data from port 8080 and, for example, printing them in fmt.Fprintfreal time. I tried to put my function instead of nil, but the screen is just blank, and there are no errors either.
3) When listening to traffic from sites running on https, will I catch encrypted traffic, or has it already been decrypted by this moment?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey, 2017-06-27
@4utka_pyan

If you need to listen to someone else's traffic, then you probably need packages like gopcap and similar wrappers over libpcap .
Alien traffic refers to the traffic of a third-party process running on the same OS.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question