reidmefirst / modbus-vcr Goto Github PK
View Code? Open in Web Editor NEWModbus VCR
Modbus VCR
Hi,
I came across this plugin and want to give it a try, but I am not able to build the Ettercap with this plugin. I tried it with the newest version (0.8.3), added the plugin into the plug-ins/modbus_vcr and modified CMakeLists (just added modbus_vcr to the PLUGINS list). Then I commented all calls (at least I think) to sslw functions, but during building I keep getting this errors:
/home/matej/repositories/ettercap-0.8.3/plug-ins/modbus_vcr/modbus_vcr.c: In function ‘modbus_insert_redirect’:
/home/matej/repositories/ettercap-0.8.3/plug-ins/modbus_vcr/modbus_vcr.c:985:6: error: ‘GBL_CONF’ undeclared (first use in this function); did you mean ‘EC_GBL_CONF’?
if (GBL_CONF->redir_command_on == NULL){
^~~~~~~~
EC_GBL_CONF
/home/matej/repositories/ettercap-0.8.3/plug-ins/modbus_vcr/modbus_vcr.c:985:6: note: each undeclared identifier is reported only once for each function it appears in
/home/matej/repositories/ettercap-0.8.3/plug-ins/modbus_vcr/modbus_vcr.c:992:34: error: ‘GBL_OPTIONS’ undeclared (first use in this function); did you mean ‘IP_OPTIONS’?
str_replace(&command, "%iface", GBL_OPTIONS->iface);
^~~~~~~~~~~
IP_OPTIONS
/home/matej/repositories/ettercap-0.8.3/plug-ins/modbus_vcr/modbus_vcr.c: In function ‘modbus_remove_redirect’:
/home/matej/repositories/ettercap-0.8.3/plug-ins/modbus_vcr/modbus_vcr.c:1028:6: error: ‘GBL_CONF’ undeclared (first use in this function); did you mean ‘EC_GBL_CONF’?
if (GBL_CONF->redir_command_on == NULL)
^~~~~~~~
EC_GBL_CONF
/home/matej/repositories/ettercap-0.8.3/plug-ins/modbus_vcr/modbus_vcr.c:1032:34: error: ‘GBL_OPTIONS’ undeclared (first use in this function); did you mean ‘IP_OPTIONS’?
str_replace(&command, "%iface", GBL_OPTIONS->iface);
^~~~~~~~~~~
IP_OPTIONS
plug-ins/CMakeFiles/modbus_vcr.dir/build.make:62: recipe for target 'plug-ins/CMakeFiles/modbus_vcr.dir/modbus_vcr/modbus_vcr.c.o' failed
make[2]: *** [plug-ins/CMakeFiles/modbus_vcr.dir/modbus_vcr/modbus_vcr.c.o] Error 1
CMakeFiles/Makefile2:789: recipe for target 'plug-ins/CMakeFiles/modbus_vcr.dir/all' failed
make[1]: *** [plug-ins/CMakeFiles/modbus_vcr.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
I've tried to add the prefixes manually, then it builds ok, but when I try to start the script, I got stuck at "modbus_vcr: plugin running..."
I've also tried to go through source code to pinpoint a possible problem, but I am not that skilled in C to fully understand it (also I really don't know how to write an Ettercap plugin).
Could you please point me to the version where it works, or help me fix this issue? I would really like to use this plugin for Modbus attack scenario and there are not much other MitM tools to use.
Thanks, Matej
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.