$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DESTDIR = . | |
PROGRAM = app | |
SRCS = $(shell find $(PWD) -name "*.c" -type f) | |
OBJS = $(SRCS:%.c=%.o) | |
CC = clang | |
INCDIRS = | |
CFLAGS = -g -O0 -Wall -Wextra -std=c17 | |
LDFLAGS = | |
LDLIBS = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"encoding/hex" | |
"fmt" | |
"unsafe" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# スキャンするターゲットのIPアドレスまたはホスト名 | |
$target = "xxx.xxx.xxx.xxx" | |
# スキャンするポート範囲 | |
$startPort = 20 | |
$endPort = 25 | |
# 指定したポート範囲でスキャンを実行 | |
for ($port = $startPort; $port -le $endPort; $port++) { | |
$tcpClient = New-Object System.Net.Sockets.TcpClient |
$ brew install gitpod-io/tap/gitpod
==> Tapping gitpod-io/tap
$ sudo vim /etc/apt/sources.list
元々のapt-lineを消して以下を追加
deb https://deb.debian.org/debian sid main non-free non-free-firmware contrib
NewerOlder