小编blu*_*ylo的帖子

grep 的意外输出

我正在使用 pyrit。对于那些不知道的人,pyrit 允许检查 wpa 握手密钥是否有效:

pyrit -r file0.cap analyze 
Run Code Online (Sandbox Code Playgroud)

当文件不包含有效密钥时,输出如下:

Parsing file 'file0.cap' (1/1)...
 AccessPoint e0:xx:xx:xx:xx:xx ('AP_name0'):
No valid EAOPL-handshake + ESSID detected.
Run Code Online (Sandbox Code Playgroud)

现在我只是想知道为什么在发布时:

pyrit -r file0.cap analyze | grep good 
Run Code Online (Sandbox Code Playgroud)

它总是给我(当没有有​​效的握手密钥时):

No valid EAOPL-handshake + ESSID detected.
Run Code Online (Sandbox Code Playgroud)

当有一个有效的密钥时,它就起作用;我们有以下输出:

HMAC_SHA1_AES, good, spread 1
Run Code Online (Sandbox Code Playgroud)

grep pipe stdout stderr

4
推荐指数
1
解决办法
291
查看次数

copy from file and paste in the terminal without x server

I have got an Ubuntu Linux without x server installed on it (because it's only a gateway). I am requested by an application (ossec,-my question is not ossec related-) to paste information into the terminal. I have got the info in a file in ~/. the information to paste is:

[SECRET KEY IN BASE64 REDACTED]
Run Code Online (Sandbox Code Playgroud)

I do not know how to paste it.

Here is what I have got:

*****************************************
* OSSEC HIDS v2.8 Agent manager.        *
* The following …
Run Code Online (Sandbox Code Playgroud)

bash terminal console

2
推荐指数
1
解决办法
1705
查看次数

标签 统计

bash ×1

console ×1

grep ×1

pipe ×1

stderr ×1

stdout ×1

terminal ×1