[2024年11月] 検証済みCompTIA PT0-002日本語リアル豪華お試しセット試験問題集でPDF
PT0-002日本語問題集PDF最新 [2024年最新] 究極の学習ガイド
質問 # 148
評価者は、ステートフル ファイアウォール ルール セットの計画を立てるために Nmap を使用したいと考えています。評価者が実行する可能性が最も高いのは次のスキャンのうちどれですか?
- A. nmap 192.168.0.1/24
- B. nmap 192.168.0.1/24
- C. nmap oG 192.168.0.1/24
- D. nmap 192.168.0.1/24
正解:B
質問 # 149
組織のオフィスの物理的なセキュリティ評価を実行するために、侵入テスターが雇われました。数時間環境を監視した後、ペネトレーション テスターは、一部の従業員が近くのレストランで昼食を取り、食べ物を手に入れている間、持ち物をテーブルに放置していることに気付きました。次の手法のうち、多くのアラートを発生させずに組織の建物への正当なアクセスを取得するために使用される可能性が最も高いのはどれですか?
- A. 共連れ
- B. ゴミ箱ダイビング
- C. ショルダーサーフィン
- D. バッジの複製
正解:D
質問 # 150
次のコードがあるとします。
$p = (80, 110, 25)
$network = (192.168.0)
$range = 1 .. 254
$ErrorActionPreference = 'silentlycontinue'
$Foreach ($add in $range)
$Foreach ($x in $p)
{ {$ip = "{0} . {1} -F $network, $add"
If (Test-Connection -BufferSize 32 -Count 1 -quiet -ComputerName $ip)
{$socket = new-object System.Net. Sockets. TcpClient (&ip, $x)
If ($socket. Connected) { $ip $p open"
$socket. Close () }
}
}}
次のタスクのうち、スクリプトを使用して実行できるのはどれですか?
- A. リバースシェル
- B. ファイルのダウンロード
- C. ポートスキャン
- D. Ping スイープ
正解:C
解説:
The script is performing a port scan on the network 192.168.0.0/24, by testing the connectivity of three ports (80, 110, 25) on each IP address in the range 1-254. A port scan is a technique used to identify open ports and services on a target host or network. It can be used for reconnaissance, vulnerability assessment, or penetration testing. Reference:
* The Official CompTIA PenTest+ Instructor Guide (Exam PT0-002) eBook, Chapter 3, Lesson 3.2, Topic 3.2.2: Perform a port scan
* PowerShell TCP port scanner, Stack Overflow answer by postanote
* PowerShell Basics: How to Scan Open Ports Within a Network, Tech Community blog by Anthony Bartolo
質問 # 151
シミュレーション
出力を使用して、さらに調査する必要がある潜在的な攻撃ベクトルを特定します。




正解:
解説:
See explanation below.
Explanation
1: Null session enumeration
Weak SMB file permissions
Fragmentation attack
2: nmap
-sV
-p 1-1023
192.168.2.2
3: #!/usr/bin/python
export $PORTS = 21,22
for $PORT in $PORTS:
try:
s.connect((ip, port))
print("%s:%s - OPEN" % (ip, port))
except socket.timeout
print("%:%s - TIMEOUT" % (ip, port))
except socket.error as e:
print("%:%s - CLOSED" % (ip, port))
finally
s.close()
port_scan(sys.argv[1], ports)
質問 # 152
侵入テスターは、Web アプリケーションのテスト中に次のトラフィックをキャプチャしました。
送信される認証情報を視覚化するためにテスト担当者が使用する必要がある方法は、次のうちどれですか?
- A. Base64 を使用して認証ヘッダーをデコードします。
- B. UTF-8 を使用して認証ヘッダーをデコードします。
- C. bcrypt を使用して認証ヘッダーを復号化します。
- D. AES を使用して認証ヘッダーを復号化します。
正解:A
質問 # 153
セキュリティ アナリストが 192.168.3.3 から未知の環境テストを実施しています。アナリストは、ペネトレーション テスターのアクティビティの観察を制限し、侵入防御および検出システムによる検出の可能性を低くしたいと考えています。この目的を達成するために、アナリストは次の Nmap コマンドのうちどれを使用する必要がありますか?
- A. nmap -F 192.168.5.5
- B. nmap -scanflags SYNFIN 192.168.5.5
- C. nmap -D 10.5.2.2 192.168.5.5
- D. nmap -datalength 2 192.168.5.5
正解:C
質問 # 154
Java および C/C++ では、次の理由から変数の初期化が重要です。
- A. 不明な値を後で使用すると、予期しない動作が発生します。
- B. 変数にはオブジェクト タイプが割り当てられません。
- C. 変数の初期状態により競合状態が発生します。
- D. コンパイラは変数に null を割り当てます。これにより、警告とエラーが発生します。
正解:A
解説:
Variable initialization is the process of assigning a value to a variable at the time of declaration. In Java and C/C++, variable initialization is critical because if a variable is not initialized, it may contain a garbage value that is unpredictable and may lead to erroneous results or runtime errors when the variable is used later in the program. For example, if a variable is used in a mathematical expression or a conditional statement, the outcome may depend on the value of the variable. If the variable is not initialized, the outcome may be different each time the program is run, or the program may crash due to an invalid operation. Therefore, it is a good practice to always initialize variables before using them, or to check if they have been initialized before using them123. Reference:
* Different Ways to Initialize a Variable in C++, GeeksforGeeks article by Anshul Aggarwal
* Static variable initialization?, Stack Overflow answer by Pawer Hajdan
* A Guide to Java Initialization, Baeldung article by Eugen Paraschiv
質問 # 155
あなたは、Web サーバーの強化を担当するセキュリティ アナリストです。
悪意のあるものとしてフラグが付けられた HTTP ペイロードのリストが提供されています。
手順
次の攻撃シグネチャを考慮して、攻撃の種類を特定し、関連する修復を特定して、将来の攻撃を防ぎます。
いつでもシミュレーションを初期状態に戻したい場合は、[すべてリセット] ボタンをクリックしてください。
正解:
解説:
Explanation:
1. Reflected XSS - Input sanitization (<> ...)
2. Sql Injection Stacked - Parameterized Queries
3. DOM XSS - Input Sanitization (<> ...)
4. Local File Inclusion - sandbox req
5. Command Injection - sandbox req
6. SQLi union - paramtrized queries
7. SQLi error - paramtrized queries
8. Remote File Inclusion - sandbox
9. Command Injection - input saniti $
10. URL redirect - prevent external calls
質問 # 156
ペネトレーション テスターは、次のペイロードを使用して脆弱性の悪用に成功しました。
IF (1=1) 遅延「0:0:15」を待つ
このタイプの攻撃を軽減するのに最も適したアクションは次のうちどれですか?
- A. エンコード出力
- B. HTML のサニタイズ
- C. クエリのパラメータ化
- D. パスワードの暗号化
正解:C
解説:
The payload used by the penetration tester is a type of blind SQL injection attack that delays the response of the database by 15 seconds if the condition is true. This can be used to extract information from the database by asking a series of true or false questions. To prevent this type of attack, the best practice is to use parameterized queries, which separate the user input from the SQL statement and prevent the injection of malicious code. Encrypting passwords, encoding output, and sanitizing HTML are also good security measures, but they do not directly address the SQL injection vulnerability. References:
* The Official CompTIA PenTest+ Study Guide (Exam PT0-002), Chapter 5: Attacks and Exploits, Section 5.2: Perform Network Attacks, Subsection: SQL Injection, p. 235-237
* Blind SQL Injection | OWASP Foundation, Description and Examples sections
* Time-Based Blind SQL Injection Attacks, Introduction and Microsoft SQL Server sections
質問 # 157
セキュリティ アナリストは、BLE スマート デバイスに対してオンパス攻撃を実行する必要があります。このタスクを達成するのに最適なツールは次のうちどれですか?
- A. ワイヤーシャーク
- B. tcpdump
- C. ガタッカー
- D. ネットキャット
正解:C
解説:
Explanation
The best tool for performing an on-path attack on BLE smart devices is Gattacker. Gattacker is a Bluetooth Low Energy (BLE) pentesting and fuzzing framework specifically designed for on-path attacks. It allows security analysts to perform a variety of tasks, including man-in-the-middle attacks, passive and active scans, fuzzing of BLE services, and more. Gattacker also provides an interactive command-line interface that makes it easy to interact with the target BLE device and execute various commands.
質問 # 158
次のうち、OWASP トップ 10 を最もよく表しているのはどれですか? (2つ選んでください。)
- A. リスクガバナンスとコンプライアンスの枠組み
- B. Web アプリケーションのセキュリティ標準
- C. 重要度順に定義されたリスク
- D. Web アプリケーションのすべてのリスクのリスト
- E. Web アプリケーションの最も重大なリスク
- F. Apache の脆弱性のチェックリスト
正解:C、E
解説:
Explanation
These two options best describe the OWASP Top 10, which stands for Open Web Application Security Project Top 10 and is a list of the most critical web application security risks based on data from various sources and experts. The list is updated periodically to reflect changes in technology and threat landscape. The list also ranks the risks in order of importance based on their prevalence, impact, and ease of exploitation or remediation. The other options are not accurate descriptions of the OWASP Top 10. The list does not cover all the risks of web applications, but rather focuses on the most common and severe ones. The list is not a web application security standard, but rather a guideline or reference for developers, testers, and security professionals. The list is not a risk-governance and compliance framework, but rather a resource or tool for identifying and mitigating web application vulnerabilities. The list is not a checklist of Apache vulnerabilities, but rather a general list of web application risks that apply to any web server or platform.
質問 # 159
侵入テスターは、Nmap を使用してホスト 64.13.134.52 をスキャンし、次の結果を受け取りました。
出力に基づいて、次のサービスのうち、悪用される可能性が最も高いのはどれですか? (2つ選んでください。)
- A. DNS
- B. SMTP
- C. NTP
- D. SNMP
- E. Telnet
- F. HTTP
正解:A、F
質問 # 160
侵入テスターは、単純な Python ベースのスキャナーを実行しました。以下は、コードのスニペットです。
このスクリプトが組織の IDS で「ポート スキャンの可能性」アラートをトリガーした理由を最もよく表しているのは、次のうちどれですか?
- A. 1 行目の *range(1, 1025) は portList リストに番号順に入力されています。
- B. remoteSvr 変数は、型ヒントも初期化もされていません。
- C. 6 行目では、socket.SOCK_DGRAM の代わりに socket.SOCK_STREAM を使用しています。
- D. 7 行目の sock.settimeout(20) により、次の各ソケットが 20 ミリ秒ごとに作成されました。
正解:A
解説:
Port randomization is widely used in port scanners. By default, Nmap randomizes the scanned port order (except that certain commonly accessible ports are moved near the beginning for efficiency reasons)
https://nmap.org/book/man-port-specification.html
質問 # 161
シミュレーション
出力を使用して、さらに調査する必要がある潜在的な攻撃ベクトルを特定します。




正解:
解説:
See explanation below.
Explanation:
1: Null session enumeration
Weak SMB file permissions
Fragmentation attack
2: nmap
-sV
-p 1-1023
192.168.2.2
3: #!/usr/bin/python
export $PORTS = 21,22
for $PORT in $PORTS:
try:
s.connect((ip, port))
print("%s:%s - OPEN" % (ip, port))
except socket.timeout
print("%:%s - TIMEOUT" % (ip, port))
except socket.error as e:
print("%:%s - CLOSED" % (ip, port))
finally
s.close()
port_scan(sys.argv[1], ports)
質問 # 162
エンゲージメント中に、侵入テスターがファイル内に次の文字列のリストを発見しました。
文字列の既知の平文を決定するための最良の手法は次のうちどれですか?
- A. 辞書攻撃
- B. クレデンシャルスタッフィング攻撃
- C. 総当り攻撃
- D. レインボーテーブルアタック
正解:D
質問 # 163
侵入テスト担当者は、クライアントのシステムをテストするために雇われます。クライアントのシステムは、クライアントの本社でホストされています。実稼働環境は、プライベート クラウド ホスティング会社によってホストされています。侵入テスト担当者がテストを開始する前に決定する必要がある最も重要なことは、次のうちどれでしょうか。
- A. サードパーティのアセット制限
- B. インフラストラクチャの物理的な場所
- C. 許可されていないテスト
- D. 時間帯制限
正解:A
質問 # 164
侵入テスターは次のコマンドを実行します。
curl -I -http2 https://www.comptia.org
テスターが受け取る可能性が最も高いのは、次の出力の断片のうちどれですか?
- A. オプション B
- B. オプション C
- C. オプション D
- D. オプション A
正解:D
解説:
Reference: https://research.securitum.com/http-2-protocol-it-is-faster-but-is-it-also-safer/
質問 # 165
ペネトレーション テスターは Hashcat を使用してペネトレーション テスト中に発見されたハッシュを解読し、次の出力を取得します。
ad09cd16529b5f5a40a3e15344e57649f4a43a267a97f008af01af803603c4c8 : 2023年夏!!
7945bb2bb08731fc8d57680ffa4aefec91c784d231de029c610b778eda5ef48b:p@ssWord123 ea88ceab69cb2fb8bdcf9ef4df884af219fffbffab473ec13f20326dc6f84d13: Love-You999 どれペネトレーション テスターの発見を修復する最善の方法は次のとおりですか?
- A. より強力なアルゴリズムによるパスワードの暗号化
- B. パスワードに複雑さのルールに従うことを要求する
- C. パスワードの最小長を 10 文字に設定します
- D. 既知の不正なパスワードのブロックリストの実装
正解:D
解説:
The penetration tester's discovery of passwords vulnerable to hash cracking suggests a lack of robust password policies within the organization. Among the options provided, implementing a blocklist of known bad passwords is the most effective immediate remediation. This measure would prevent users from setting passwords that are easily guessable or commonly used, which are susceptible to hash cracking tools like Hashcat.
Requiring passwords to follow complexity rules (Option A) can be helpful, but attackers can still crack complex passwords if they are common or have been exposed in previous breaches. Setting a minimum password length (Option C) is a good practice, but length alone does not ensure a password's strength against hash cracking techniques. Encrypting passwords with a stronger algorithm (Option D) is a valid long-term strategy but would not prevent users from choosing weak passwords that could be easily guessed before hash cracking is even necessary.
Therefore, a blocklist addresses the specific vulnerability exposed by the penetration tester-users setting weak passwords that can be easily cracked. It's also worth noting that the best practice is a combination of strong, enforced password policies, user education, and the use of multi-factor authentication to enhance security further.
質問 # 166
Java および C/C++ では、次の理由から変数の初期化が重要です。
- A. 不明な値を後で使用すると、予期しない動作が発生します。
- B. 変数にはオブジェクト タイプが割り当てられません。
- C. 変数の初期状態により競合状態が発生します。
- D. コンパイラは変数に null を割り当てます。これにより、警告とエラーが発生します。
正解:A
解説:
Variable initialization is the process of assigning a value to a variable at the time of declaration. In Java and C/C++, variable initialization is critical because if a variable is not initialized, it may contain a garbage value that is unpredictable and may lead to erroneous results or runtime errors when the variable is used later in the program. For example, if a variable is used in a mathematical expression or a conditional statement, the outcome may depend on the value of the variable. If the variable is not initialized, the outcome may be different each time the program is run, or the program may crash due to an invalid operation. Therefore, it is a good practice to always initialize variables before using them, or to check if they have been initialized before using them123. Reference:
* Different Ways to Initialize a Variable in C++, GeeksforGeeks article by Anshul Aggarwal
* Static variable initialization?, Stack Overflow answer by Pawe Hajdan
* A Guide to Java Initialization, Baeldung article by Eugen Paraschiv
質問 # 167
セキュリティ エンジニアは、ネットワーク上に新しいサーバーを特定し、そのホストをスキャンして、承認されたバージョンの Linux とパッチを適用したバージョンの Apache が実行されているかどうかを判断したいと考えています。次のコマンドのうち、このタスクを実行するのはどれですか?
- A. nmap -O -v -p80 192.168.1.20
- B. nmap -A -T4 -p80 192.168.1.20
- C. nmap -f -sV -p80 192.168.1.20
- D. nmap -sS -sL -p80 192.168.1.20
正解:B
解説:
This command will scan the host 192.168.1.20 on port 80 using the following options:
* -A: This option enables OS detection, version detection, script scanning, and traceroute. This will help to determine if the host is running an approved version of Linux and a patched version of Apache, as well as other information about the host and the network path.
* -T4: This option sets the timing template to aggressive, which speeds up the scan by increasing the number of parallel probes, reducing the timeouts, and assuming faster responses.
* -p80: This option specifies the port to scan, which is 80 in this case. Port 80 is commonly used for HTTP services, such as Apache web server.
質問 # 168
侵入テスト チームは、会社のオフィスで電子記録のセキュリティをテストする必要があります。契約条件により、侵入テストは営業時間後に実施する必要があり、アラームの回避や破壊的な侵入の実行を含めるべきではありません。外部の偵察中に、チームは隣接する建物からドアが開いているのを確認します。エンゲージメントの条件の下で許可されるのは、次のうちどれですか?
- A. 記録室の鍵をこじ開ける
- B. 記録室の廊下にあるモーション センサーを妨害する
- C. 夜間警備員に偽の社員証を提示する行為
- D. 隣接する建物の開いた窓に登る
正解:D
解説:
The terms of engagement state that the penetration test should not include circumventing the alarm or performing destructive entry, which rules out options A and D. Option C is also not allowed, as it involves social engineering, which is not part of the scope. Option B is the only one that does not violate the terms of engagement, as it uses an open door from an adjoining building to gain access to the records room. This can help the penetration tester to test the physical security of the electronic records without breaking any rules.
質問 # 169
侵入テスターは、パブリック クラウド プロバイダーによってホストされている Web アプリケーションをテストしています。テスターは、プロバイダーのメタデータを照会し、インスタンスがそれ自体を認証するために使用する資格情報を取得できます。テスターが悪用した脆弱性は次のうちどれですか?
- A. クロスサイト リクエスト フォージェリ
- B. サーバー側のリクエスト フォージェリ
- C. ローカル ファイル インクルード
- D. リモート ファイル インクルード
正解:B
解説:
Server-side request forgery (SSRF) is the vulnerability that the tester exploited by querying the provider's metadata and getting the credentials used by the instance to authenticate itself. SSRF is a type of attack that abuses a web application to make requests to other resources or services on behalf of the web server. This can allow an attacker to access internal or external resources that are otherwise inaccessible or protected. In this case, the tester was able to access the metadata service of the cloud provider, which contains sensitive information about the instance, such as credentials, IP addresses, roles, etc.
Reference: https://owasp.org/www-community/attacks/Server_Side_Request_Forgery
質問 # 170
Nmap スキャンの結果は次のとおりです。
次のうち、このデバイスに関する最良の結論はどれですか?
- A. このデバイスは、DNSSEC 検証前にパケットから DNS 名を抽出するために使用される方法にバター オーバーフローの脆弱性があるため、リモート コード実行に対して脆弱である可能性があります。
- B. このデバイスは、TCP/22 を介したトランザクションがハートビート拡張パケットを処理する方法が原因で、Heartbleed バグに対して脆弱である可能性があり、攻撃者がプロセス メモリから機密情報を取得できるようになります。
- C. このデバイスは、インバンド管理サービスを備えたゲートウェイである可能性が最も高いです。
- D. このデバイスは、TCP/443 経由でリクエストを転送するプロキシ サーバーである可能性が最も高いです。
正解:C
解説:
The heart bleed bug is an open ssl bug which does not affect SSH Ref:
https://www.sos-berlin.com/en/news-heartbleed-bug-does-not-affect-jobscheduler-or-ssh
質問 # 171
......
あなたを合格させるCompTIA試験でPT0-002日本語試験問題集:https://jp.fast2test.com/PT0-002J-premium-file.html