小编Gow*_*ham的帖子

这个命令是如何工作的?(反壳)

有一种简单的方法可以连接两个系统并使用nc命令获取 shell,如下所示。

但是,-e选项不再存在,手册页建议按照以下方式执行命令

我确实知道(命名管道)背后的概念mkfifo以及重定向和管道的工作原理。但这仍然让我困惑。

command-line bash networking pipe netcat

9
推荐指数
1
解决办法
4918
查看次数

sudo:/etc/sudoers 在 Azure 上是全局可写的

虽然这个问题有很多答案,但这里的场景有所不同:

\n\n

I\xe2\x80\x99m 在 Azure 上使用 Ubuntu 18.04。

\n\n

我错误地将sudoers文件设为全局可写 ( sudo chmod o+w /etc/sudoers)。有一个适当的方法来修复。\n为此,我需要一个 Ubuntu 用户\xe2\x80\x99s 密码

\n\n

输出:-

\n\n
ubuntu@azurevm:~$ ls -la /etc/sudoers\n-r--r---w- 1 root root 755 Jan 18  2018 /etc/sudoers\nubuntu@azurevm:~$ \nubuntu@azurevm-VM:~$ \nubuntu@azurevm:~$ \nubuntu@azurevm:~$ pkexec chmod 0755 /etc/sudoers\n==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===\nAuthentication is needed to run `/bin/chmod\' as the super user\nAuthenticating as: Ubuntu (ubuntu)\nPassword: \npolkit-agent-helper-1: pam_authenticate failed: Authentication failure\n==== AUTHENTICATION FAILED ===\nError executing command as another user: Not authorized\n\nThis incident has been reported.\nubuntu@azurevm:~$ …
Run Code Online (Sandbox Code Playgroud)

permissions cloud sudo password azure

3
推荐指数
1
解决办法
1215
查看次数

标签 统计

azure ×1

bash ×1

cloud ×1

command-line ×1

netcat ×1

networking ×1

password ×1

permissions ×1

pipe ×1

sudo ×1