Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't use docker install mqtt-pwn #23

Open
Facker007 opened this issue Jan 10, 2023 · 5 comments
Open

don't use docker install mqtt-pwn #23

Facker007 opened this issue Jan 10, 2023 · 5 comments

Comments

@Facker007
Copy link

this is my error
`ubuntu@VM-8-14-ubuntu:~/mqtt-pwn-master$ sudo docker-compose up --build --detach
[+] Building 7.5s (7/12)
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 32B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for docker.io/library/python:3.6-jessie 0.8s
=> [1/8] FROM docker.io/library/python:3.6-jessie@sha256:1e428d8e87bcc9cd156539c5afeb60075a518b20d2d4657db962df90e6552fa5 0.0s
=> [internal] load build context 0.0s
=> => transferring context: 5.02kB 0.0s
=> CACHED [2/8] RUN apt-get update 0.0s
=> ERROR [3/8] RUN apt-get install software-properties-common less vim -y 6.6s

[3/8] RUN apt-get install software-properties-common less vim -y:
#0 1.250 Reading package lists...
#0 4.103 Building dependency tree...
#0 4.215 Reading state information...
#0 4.284 The following extra packages will be installed:
#0 4.284 apt-utils dbus dh-python init-system-helpers iso-codes libapt-inst1.5
#0 4.284 libcap-ng0 libdbus-1-3 libdbus-glib-1-2 libgpm2 libmpdec2 libpython3-stdlib
#0 4.284 libpython3.4-minimal libpython3.4-stdlib lsb-release python-apt-common
#0 4.284 python3 python3-apt python3-dbus python3-gi python3-minimal
#0 4.284 python3-software-properties python3.4 python3.4-minimal unattended-upgrades
#0 4.284 vim-common vim-runtime
#0 4.285 Suggested packages:
#0 4.285 dbus-x11 isoquery gpm lsb python3-doc python3-tk python3-venv
#0 4.285 python3-apt-dbg python-apt-doc python-dbus-doc python3-dbus-dbg
#0 4.285 python3.4-venv python3.4-doc binfmt-support bsd-mailx mail-transport-agent
#0 4.285 ctags vim-doc vim-scripts
#0 4.285 The following NEW packages will be installed:
#0 4.285 apt-utils dbus dh-python init-system-helpers iso-codes less libapt-inst1.5
#0 4.285 libcap-ng0 libdbus-1-3 libdbus-glib-1-2 libgpm2 libmpdec2 libpython3-stdlib
#0 4.285 libpython3.4-minimal libpython3.4-stdlib lsb-release python-apt-common
#0 4.285 python3 python3-apt python3-dbus python3-gi python3-minimal
#0 4.285 python3-software-properties python3.4 python3.4-minimal
#0 4.285 software-properties-common unattended-upgrades vim vim-common vim-runtime
#0 6.514 0 upgraded, 30 newly installed, 0 to remove and 90 not upgraded.
#0 6.514 Need to get 15.6 MB of archives.
#0 6.514 After this operation, 71.1 MB of additional disk space will be used.
#0 6.514 WARNING: The following packages cannot be authenticated!
#0 6.514 libgpm2 libcap-ng0 libdbus-glib-1-2 libmpdec2 init-system-helpers less
#0 6.514 python3-minimal libpython3-stdlib python3 dh-python iso-codes lsb-release
#0 6.514 python3-dbus python3-gi python3-software-properties
#0 6.514 software-properties-common
#0 6.516 E: There are problems and -y was used without --force-yes


failed to solve: executor failed running [/bin/sh -c apt-get install software-properties-common less vim -y]: exit code: 100`

system:ubuntu 20.04

@zhuohuaxi
Copy link

Dockerfile:
`FROM python:3.8-slim-buster

RUN apt-get update
RUN apt-get install software-properties-common less vim -y

ENV INSTALL_PATH /mqtt_pwn
RUN mkdir -p $INSTALL_PATH
WORKDIR $INSTALL_PATH

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

COPY . .
`

requirements.txt:
aiohttp==3.2.1 alabaster==0.7.10 async-timeout==3.0.0 attrs==18.1.0 Babel==2.5.3 blessings==1.6.1 certifi==2018.4.16 chardet==3.0.4 Click==7.0 click-plugins==1.0.4 cmd2==0.9.3 colorama==0.4.0 docutils==0.14 future==0.16.0 idna==2.6 idna-ssl==1.1.0 imagesize==1.0.0 Jinja2==2.10 MarkupSafe multidict==4.3.1 packaging==17.1 paho-mqtt==1.3.1 peewee==3.3.2 prettytable==0.7.2 psycopg2-binary Pygments PyMySQL==0.8.1 pyparsing==2.2.0 pyperclip==1.6.0 pytz==2018.4 requests==2.20.0 shodan==1.10.4 six==1.11.0 snowballstemmer==1.2.1 Sphinx==1.7.4 sphinxcontrib-websupport==1.0.1 urllib3==1.24.2 wcwidth==0.1.7 XlsxWriter==1.1.2 yarl==1.2.4

@zhuohuaxi
Copy link

image

@Richard000000
Copy link

Dockerfile: `FROM python:3.8-slim-buster

RUN apt-get update RUN apt-get install software-properties-common less vim -y

ENV INSTALL_PATH /mqtt_pwn RUN mkdir -p $INSTALL_PATH WORKDIR $INSTALL_PATH

COPY requirements.txt requirements.txt RUN pip install -r requirements.txt

COPY . . `

requirements.txt: aiohttp==3.2.1 alabaster==0.7.10 async-timeout==3.0.0 attrs==18.1.0 Babel==2.5.3 blessings==1.6.1 certifi==2018.4.16 chardet==3.0.4 Click==7.0 click-plugins==1.0.4 cmd2==0.9.3 colorama==0.4.0 docutils==0.14 future==0.16.0 idna==2.6 idna-ssl==1.1.0 imagesize==1.0.0 Jinja2==2.10 MarkupSafe multidict==4.3.1 packaging==17.1 paho-mqtt==1.3.1 peewee==3.3.2 prettytable==0.7.2 psycopg2-binary Pygments PyMySQL==0.8.1 pyparsing==2.2.0 pyperclip==1.6.0 pytz==2018.4 requests==2.20.0 shodan==1.10.4 six==1.11.0 snowballstemmer==1.2.1 Sphinx==1.7.4 sphinxcontrib-websupport==1.0.1 urllib3==1.24.2 wcwidth==0.1.7 XlsxWriter==1.1.2 yarl==1.2.4

按照你的方法成功了,多谢大兄弟了

@ghost
Copy link

ghost commented Jun 15, 2023

Dockerfile:
FROM python:3.6-jessie

RUN echo "deb http://archive.debian.org/debian jessie main" > /etc/apt/sources.list
RUN apt-get update
RUN apt-get install --force-yes -y software-properties-common less vim

ENV INSTALL_PATH /mqtt_pwn
RUN mkdir -p $INSTALL_PATH
WORKDIR $INSTALL_PATH

COPY requirements.txt requirements.txt
RUN pip install -r requirements.txt

COPY . .

requirements.txt:
aiohttp==3.2.1 alabaster==0.7.10 async-timeout==3.0.0 attrs==18.1.0 Babel==2.5.3 blessings==1.6.1 certifi==2018.4.16 chardet==3.0.4 Click==7.0 click-plugins==1.0.4 cmd2==0.9.3 colorama==0.4.0 docutils==0.14 future==0.16.0 idna==2.6 idna-ssl==1.1.0 imagesize==1.0.0 Jinja2==2.10 MarkupSafe multidict==4.3.1 packaging==17.1 paho-mqtt==1.3.1 peewee==3.3.2 prettytable==0.7.2 psycopg2-binary Pygments PyMySQL==0.8.1 pyparsing==2.2.0 pyperclip==1.6.0 pytz==2018.4 requests==2.20.0 shodan==1.10.4 six==1.11.0 snowballstemmer==1.2.1 Sphinx==1.7.4 sphinxcontrib-websupport==1.0.1 urllib3==1.24.2 wcwidth==0.1.7 XlsxWriter==1.1.2 yarl==1.2.4

@ffkkaq
Copy link

ffkkaq commented Aug 17, 2023

Dockerfile: FROM python:3.8-slim-buster RUN apt-get update RUN apt-get install software-properties-common less vim -y ENV INSTALL_PATH /mqtt_pwn RUN mkdir -p $INSTALL_PATH WORKDIR $INSTALL_PATH COPY requirements.txt requirements.txt RUN pip install -r requirements.txt COPY . .
requirements.txt: aiohttp==3.2.1 alabaster==0.7.10 async-timeout==3.0.0 attrs==18.1.0 Babel==2.5.3 blessings==1.6.1 certifi==2018.4.16 chardet==3.0.4 Click==7.0 click-plugins==1.0.4 cmd2==0.9.3 colorama==0.4.0 docutils==0.14 future==0.16.0 idna==2.6 idna-ssl==1.1.0 imagesize==1.0.0 Jinja2==2.10 MarkupSafe multidict==4.3.1 packaging==17.1 paho-mqtt==1.3.1 peewee==3.3.2 prettytable==0.7.2 psycopg2-binary Pygments PyMySQL==0.8.1 pyparsing==2.2.0 pyperclip==1.6.0 pytz==2018.4 requests==2.20.0 shodan==1.10.4 six==1.11.0 snowballstemmer==1.2.1 Sphinx==1.7.4 sphinxcontrib-websupport==1.0.1 urllib3==1.24.2 wcwidth==0.1.7 XlsxWriter==1.1.2 yarl==1.2.4

按照你的方法成功了,多谢大兄弟了

这怎么成功的,明显requirements.txt里面的依赖不对
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants