
Research
2025 Report: Destructive Malware in Open Source Packages
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.
github.com/fedoseevalex/otusgolanghomework/hw11_telnet_client
Advanced tools
Необходимо реализовать крайне примитивный TELNET клиент (без поддержки команд, опций и протокола в целом).
Примеры вызовов:
$ go-telnet --timeout=10s host port
$ go-telnet mysite.ru 8080
$ go-telnet --timeout=3s 1.1.1.1 123
--timeout) - по умолчанию 10s.Ctrl+D программа должна закрывать сокет и завершаться с сообщением.SIGINT программа должна завершать свою работу.При необходимости можно выделять дополнительные функции / ошибки.
Примеры работы:
$ nc -l localhost 4242
Hello from NC
I'm telnet client
Bye, client!
^C
$ go-telnet --timeout=5s localhost 4242
...Connected to localhost:4242
Hello from NC
I'm telnet client
Bye, client!
Bye-bye
...Connection was closed by peer
Здесь сообщения
Hello from NC
Bye, client!
и операция Ctrl+C (Unix) относятся к nc,
а сообщения
I'm telnet client
Bye-bye
относятся к go-telnet.
$ go-telnet localhost 4242
...Connected to localhost:4242
I
will be
back!
^D
...EOF
$ nc -l localhost 4242
I
will be
back!
Здесь сообщения
I
will be
back!
и операция Ctrl+D (Unix) относятся к go-telnet,
Сообщения
...Connected to localhost:4242
...Connection was closed by peer
...EOF
являются служебными.
Они выводятся в STDERR и не тестируются test.sh, их формат на усмотрение автора.
flag.StringVarnet.JoinHostPort, net.DialTimeoutbufio / ioFAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
Destructive malware is rising across open source registries, using delays and kill switches to wipe code, break builds, and disrupt CI/CD.

Security News
Socket CTO Ahmad Nassri shares practical AI coding techniques, tools, and team workflows, plus what still feels noisy and why shipping remains human-led.

Research
/Security News
A five-month operation turned 27 npm packages into durable hosting for browser-run lures that mimic document-sharing portals and Microsoft sign-in, targeting 25 organizations across manufacturing, industrial automation, plastics, and healthcare for credential theft.