forked from mushorg/conpot
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Break out port and ip * Roughly handle mushorg#399 (not very PEP-8) * Some PEP-8 adjustments as suggested in mushorg#402 * Adds random generated functions for function pointers in template.xml to support non static register values. * fix tftp test * Fixes crypto quality issues and extra space. * Fix typo. * Fix s7 parameter length calculation * Docker fixes (mushorg#416) * updated Dockerfile * cleanup * image size reduced * multi stage build to reduce image size * moved to alpine * Fixed wrong Docker ports * fix mushorg#418 add missing dependency libffi-dev * Makefile for docker added * Fixed exception loop in the FTP handler * Changing exception (mushorg#425) * updated dockerfile (mushorg#429) - related (mushorg#428) With the recent update to pip 19.01 there was a build slight issue with the docker commands, refer here: pypa/pip#6197 * Revert "docker/dockerfile:Updated dockerfile" (mushorg#432) * Revert "updated dockerfile (mushorg#429) - related (mushorg#428)" This reverts commit fe65c16. * fix docker * Added support for plc-stop signal. (mushorg#447) * Added support for plc-stop signal. * Added support for plc-stop signal and added it's tests. * Added support for plc-stop signal and added it's tests.
- Loading branch information
Showing
13 changed files
with
174 additions
and
82 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.PHONY: docker | ||
build-docker: | ||
docker build -t conpot docker/ | ||
|
||
run-docker: build-docker | ||
docker run -it -p 80:8800 -p 102:10201 -p 502:5020 -p 161:16100/udp -p 47808:47808/udp -p 623:6230/udp -p 21:2121 -p 69:6969/udp -p 44818:44818 --network=bridge conpot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright (C) 2018 Billy Ferguson <wferguson@blueprintpower.com> | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either version 2 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., | ||
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
|
||
import random | ||
|
||
class Random8BitRegisters: | ||
def __init__(self): | ||
self.key_num = random.SystemRandom() | ||
|
||
def get_value(self): | ||
values = [self.key_num.randint(0,1) for b in range (0, 8)] | ||
return values | ||
|
||
|
||
class Random16bitRegister: | ||
def __init__(self): | ||
self.key_num = random.SystemRandom() | ||
|
||
def get_value(self): | ||
return [self.key_num.randint(0,1)] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.