Browse Source

Change C++ botnet library name to a more specific name

dustin.born 6 years ago
parent
commit
c76ec2a134

+ 1 - 1
build.sh

@@ -20,7 +20,7 @@ fi
 
 
 if [ $? -eq 0 ]; then
 if [ $? -eq 0 ]; then
     cp libpcapreader.so ../../../code/ID2TLib/
     cp libpcapreader.so ../../../code/ID2TLib/
-    cp libbotnet.so ../../../code/ID2TLib/
+    cp libbotnetcomm.so ../../../code/ID2TLib/
 else
 else
     echo "Error: 'make' did not finish successfully."
     echo "Error: 'make' did not finish successfully."
     exit
     exit

+ 1 - 1
code/Attack/MembersMgmtCommAttack.py

@@ -7,7 +7,7 @@ from datetime import datetime
 import os
 import os
 import sys
 import sys
 
 
-import ID2TLib.libbotnet as lb
+import ID2TLib.libbotnetcomm as lb
 from Attack import BaseAttack
 from Attack import BaseAttack
 from Attack.AttackParameters import Parameter as Param
 from Attack.AttackParameters import Parameter as Param
 from Attack.AttackParameters import ParameterTypes
 from Attack.AttackParameters import ParameterTypes

+ 2 - 2
code_boost/src/CMakeLists.txt

@@ -80,8 +80,8 @@ ADD_LIBRARY(pcapreader SHARED ${SOURCE_FILES})
 # Libs pthread and dl are prerequisites of SQLiteCpp
 # Libs pthread and dl are prerequisites of SQLiteCpp
 TARGET_LINK_LIBRARIES(pcapreader ${Boost_LIBRARIES} "${TINS_LIBRARY}" ${PYTHON_LIBRARIES} SQLiteCpp sqlite3 pthread dl)
 TARGET_LINK_LIBRARIES(pcapreader ${Boost_LIBRARIES} "${TINS_LIBRARY}" ${PYTHON_LIBRARIES} SQLiteCpp sqlite3 pthread dl)
 
 
-ADD_LIBRARY(botnet SHARED ${BOT_COMM_PROC_SOURCE})
-TARGET_LINK_LIBRARIES(botnet ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
+ADD_LIBRARY(botnetcomm SHARED ${BOT_COMM_PROC_SOURCE})
+TARGET_LINK_LIBRARIES(botnetcomm ${Boost_LIBRARIES} ${PYTHON_LIBRARIES})
 
 
 # comment this out to build executable (for development)
 # comment this out to build executable (for development)
 #ADD_EXECUTABLE(cpp-pcapreader ${SOURCE_FILES})
 #ADD_EXECUTABLE(cpp-pcapreader ${SOURCE_FILES})

+ 1 - 1
code_boost/src/cxx/botnet_comm_processor.cpp

@@ -491,7 +491,7 @@ py::list botnet_comm_processor::convert_intervals_to_py_repr(const std::vector<c
 
 
 using namespace boost::python;
 using namespace boost::python;
 
 
-BOOST_PYTHON_MODULE (libbotnet) {
+BOOST_PYTHON_MODULE (libbotnetcomm) {
     class_<botnet_comm_processor>("botnet_comm_processor")
     class_<botnet_comm_processor>("botnet_comm_processor")
             .def(init<list>())
             .def(init<list>())
             .def(init<>())
             .def(init<>())