1in9e / gosint

Gosint is a distributed asset information collection and vulnerability scanning platform
411 stars 86 forks source link

Client端一直在Docker容器里面重启,顺便发现一个Bug #32

Open li-baige opened 1 year ago

li-baige commented 1 year ago

拿一个举例子,源代码如下:

if $subfinder; then
    cd /app/subdomain_scan/subfinder
    nohup celery -A subfinder worker -l info -c 1 -Q subfinder -n subfinder_$RANDOM --logfile=/app/logs/subfinder_celery.log >/dev/null 2>&1 &
fi

然而subfinder_$RANDOM是随机生成的,如果有大量的扫描任务后,会不会生成重复的随机数,导致覆盖原来的数据,尝试修改如下:

if $subfinder; then
    task_name="subfinder_{date+$(date '+%Y.%m.%d')}_$RANDOM"
    nohup celery -A subfinder worker -l info -c 1 -Q subfinder -n $task_name --logfile=/app/logs/subfinder_celery.log > /dev/null 2>&1 &
    if [$? -eq 0]; then
    echo "subfinder 任务成功启动!"
    fi
fi
li-baige commented 1 year ago

Xnip2023-04-10_11-53-49 Client端一直报错:

2023-04-10 16:42:57 Error relocating ./xray: __vfprintf_chk: symbol not found
2023-04-10 16:42:57 Error relocating ./xray: __fdelt_chk: symbol not found

然而我加入了musl libs库,依然报错,问题并没有被解决。