Code Monkey home page Code Monkey logo

modbus-vcr's People

Contributors

hackmycontrolsystem avatar reidmefirst avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

modbus-vcr's Issues

Ettercap build & run failiure

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.