标签: archlinux

Linux的安全措施反对执行shellcode

我正在学习计算机安全的基础知识,并且我正在尝试执行一些我写过的shellcode.我按照这里给出的步骤

http://dl.packetstormsecurity.net/papers/shellcode/own-shellcode.pdf

http://webcache.googleusercontent.com/search?q=cache:O3uJcNhsksAJ:dl.packetstormsecurity.net/papers/shellcode/own-shellcode.pdf+own+shellcode&cd=1&hl=nl&ct=clnk&gl=nl

$ cat pause.s
xor %eax,%eax
mov $29,%al     
int $0x80       
$ as -o pause.o pause.s
$ ld -o pause pause.o
ld: warning: cannot find entry symbol _start; defaulting to <<some address here>>
$ ./pause 
^C
$ objdump -d ./pause
pause:     file format elf64-x86_64
Disassembly of section .text:
      08048054 <.text>:
      8048054: 31 c0     xor    %eax,%eax
      8048056: b0 1d     mov    $0x1d,%al
      8048058: cd 80     int    $0x8
$
Run Code Online (Sandbox Code Playgroud)

由于我让暂停程序工作,我只是将objdump输出复制到ac文件.

test.c的:

int main()
{
    char s[] = "\x31\xc0\xb0\x1d\xcd\x80";
    (*(void(*)())s)();
}
Run Code Online (Sandbox Code Playgroud)

但这会产生段错误.现在,这只能归功于Arch Linux(?)的安全措施.那我怎么能让它运作起来呢?

x86-64 linux-kernel archlinux shellcode

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

Python脚本与Cron作业

我需要运行一个cron作业,以便在每个星期一早上的"00:00:00"UTC每周生成一个用户排名列表.有没有人为此得到一个例子,它真的是我的头...我看着"crontab -e"并立即迷失了.

Basics:
 - Run the script, eg: /srv/django/get_rankings.py
 - Run the script at "00:00:00" and "00:05:00" every Monday.
 - Run the same script the next Monday ... and repeat
Run Code Online (Sandbox Code Playgroud)

我在Linux Arch上,任何抬头都会很棒.

非常感谢,希望一切顺利

python cron archlinux

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

构建postgis 2.0.0失败

我有PostgreSQL 9.3在archlinux上安装了。

我正在尝试还原psql <db_hame> < backup.file使用postgis 2.0函数,类型等的数据库备份()。我尝试使用pacman -S postgis成功安装的pacman()安装postgis(),但似乎2.02.1版本不兼容,因为我在数据库中抱怨很多错误而抱怨缺少函数进口:

ERROR:  could not find function "geography_analyze" in file "/usr/lib/postgresql/postgis-2.1.so"
ERROR:  function public.geography_analyze(internal) does not exist
ERROR:  function geography_analyze(internal) does not exist
ERROR:  could not find function "geometry_analyze_2d" in file "/usr/lib/postgresql/postgis-2.1.so"
ERROR:  function public.geometry_analyze(internal) does not exist
ERROR:  function geometry_analyze(internal) does not exist
ERROR:  type "geometry" is only a shell
ERROR:  type "public.geometry_dump" does not exist
ERROR:  type "geometry" is only a shell …
Run Code Online (Sandbox Code Playgroud)

postgresql postgis archlinux

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

在Arch Linux上使用Systemd运行Neo4j时出错

我已经在我的arch linux设置上安装了neo4j,并且能够手动启动服务器(sudo neo4j start).但是,当我尝试使用它时systemctl start neo4j,我得到了

Job for neo4j.service failed. See 'systemctl status neo4j.service' and
'journalctl -xn' for details.
Run Code Online (Sandbox Code Playgroud)

错误消息中的任何建议都没有提供任何帮助.我有/usr/lib/systemd/system/neo4j.service:

[Unit]
Description=Neo4j

[Service]
User=root
Type=forking
ExecStart=/usr/bin/neo4j start
ExecStop=/usr/bin/neo4j stop
PIDFile=/run/neo4j/neo4j-service.pid
#LimitNOFILE=40000

[Install]
WantedBy=multi-user.target
Run Code Online (Sandbox Code Playgroud)

我尝试在neo4j和root之间更改用户,在尝试设置security/limits.conf中的限制之前,我最初没有注释掉LimitNOFILE(在正常启动时摆脱了文件编号错误).AUR中提到了此设置,但我无法使其正常工作.任何帮助表示赞赏!

neo4j archlinux systemd

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

Arch Linux上的Intellij Idea 14出现灰屏

我试图在装有Arch Linux的Macbook上运行Intellij Idea 14。我已经安装了Idea和从AUR安装的Oracle JDK8。

当我运行idea.sh时,将显示初始屏幕,并在完成加载后打开此屏幕

这是idea.log:

2015-10-29 17:02:33,298 [      0]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDE STARTED ------------------------------------------------------ 
2015-10-29 17:02:33,312 [     14]   INFO -        #com.intellij.idea.Main - IDE: IntelliJ IDEA (build #IC-141.2735.5, 22 Sep 2015 00:00) 
2015-10-29 17:02:33,312 [     14]   INFO -        #com.intellij.idea.Main - OS: Linux (4.2.3-1-arch, amd64) 
2015-10-29 17:02:33,312 [     14]   INFO -        #com.intellij.idea.Main - JRE: 1.8.0_66-b17 (Oracle Corporation) 
2015-10-29 17:02:33,312 [     14]   INFO -        #com.intellij.idea.Main - JVM: 25.66-b17 (Java HotSpot(TM) 64-Bit Server VM) 
2015-10-29 17:02:33,314 [ …
Run Code Online (Sandbox Code Playgroud)

linux intellij-idea archlinux java-8 intellij-14

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

ssh-agent:无法打开与身份验证代理的连接

我已经做了大量研究,但是这些工作都没有。这是从我的终端输出的:

$ ps aux | grep ssh-agent
tsiruan   4080  0.0  0.0  13468   388 ?        Ss   11:47   0:00 ssh-agent
$ env | grep SSH
SSH_AUTH_SOCK=/tmp/ssh-8CJH68abyLAa/agent.4079
SSH_AGENT_PID=4080
$ sudo ssh-add .ssh/bitbucket_ssh
[sudo] password for tsiruan:
Could not open a connection to your authentication agent.
Run Code Online (Sandbox Code Playgroud)

我尝试$ eval $(ssh-agent)使用反引号,单引号,双引号,带和不带括号,带和不带-s选项,甚至包括以下答案:

$ exec ssh-agent bash
Run Code Online (Sandbox Code Playgroud)

请帮助我,我正在Arch Linux上运行bash。

ssh bash archlinux

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

如何在linux上运行Linux上运行的程序

我使用安装Arch Linux与决斗启动的Linux Mint 18.1.在我的大学里我们安装了lubuntu 16.04和Ubuntu 14.04.我还在arch Linux中启用了测试repos,因此我获得了更新的软件包,因此当我在Arch上编译任何C++程序时,由于共享库的版本不匹配而无法在Linux Mint上运行.

就像libMango.so.64一样,而libMango.so.60也是如此.我怎么能克服这个?

所以我要问如何使用较新的编译器和共享库来编译任何C/C++,以便与旧的共享库一起运行?就像我在带有-m32标志的64位机器上编译32位程序一样,旧共享库也有标志吗?

我正在使用gcc 8.1.

c++ linux shared-libraries dynamic-linking archlinux

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

无法在module_path中找到主题引擎:"adwaita"

此文本显示在intellij idea"运行"选项卡中.它是什么?我在谷歌搜索,但只有gnome解决方案.我正在使用archlinux和kde5等离子

kde archlinux

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

启动gnome-terminal会导致“构造代理时出错...”

侏儒终端

为org.gnome.Terminal构建代理时出错:/ org / gnome / Terminal / Factory0:调用错误

org.gnome.Terminal的StartServiceByName:已达到超时

输出localectl

   System Locale: LANG=en_US.UTF-8
       VC Keymap: dvorak
      X11 Layout: dvorak
       X11 Model: pc105
Run Code Online (Sandbox Code Playgroud)

此错误可能是什么原因?这里提到了https://wiki.gnome.org/Apps/Terminal/FAQ,但是我不是通过sudo或root运行它的。


运行sudo gnome-terminal足够令人惊讶的正确工作。

archlinux

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

RequestsDependencyWarning:urllib3(1.25.2)或chardet(3.0.4)与支持的版本不匹配!固定

每当我运行带有请求的代码或执行pip安装时,都会收到此消息

/usr/lib/python2.7/site-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.25.2) or chardet (3.0.4) doesn't match a supported version!
  RequestsDependencyWarning)
Run Code Online (Sandbox Code Playgroud)

我曾尝试升级chardet,urllib3和请求,但没有任何效果,有人知道我该如何解决?

编辑:RequestsDependencyWarning:urllib3(1.9.1)或chardet(2.3.0)与支持的版本不匹配 <-这不能解决我的问题。

python pip importerror archlinux

2
推荐指数
4
解决办法
2270
查看次数