Giter Club home page Giter Club logo

ndss18_wycinwyc's People

Contributors

mariusmue 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

ndss18_wycinwyc's Issues

Full simulation with Openocd error

Hi, I use mode 3 for the full simulation.
I've compiled stm32l1 and wycinwyz plugin.
the error is this:

Traceback (most recent call last):
  File "nucleo_state_transfer.py", line 81, in <module>
    main()
  File "nucleo_state_transfer.py", line 32, in main
    avatar.init_targets()
  File "/home/dghost/.local/lib/python2.7/site-packages/avatar2/avatar2.py", line 210, in init_targets
    t[1].init()
  File "/home/dghost/.local/lib/python2.7/site-packages/avatar2/watchmen.py", line 78, in watchtrigger
    ret = func(self, *args, **kwargs)
  File "/home/dghost/.local/lib/python2.7/site-packages/avatar2/targets/openocd_target.py", line 49, in init
    ocd_connected = openocd.connect()
  File "/home/dghost/.local/lib/python2.7/site-packages/avatar2/protocols/openocd.py", line 109, in connect
    self.output_directory))
RuntimeError: Openocd errored! Please check /tmp/avatar/openocd_err.txt for details

and /tmp/avatar/openocd_err.txt:

Open On-Chip Debugger 0.10.0
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
Info : auto-selecting first available session transport "hla_swd". To override use 'transport select <transport>'.
adapter speed: 300 kHz
adapter_nsrst_delay: 100
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
none separate
Info : Unable to match requested speed 300 kHz, using 240 kHz
Info : Unable to match requested speed 300 kHz, using 240 kHz
Info : clock speed 240 kHz
Error: open failed
in procedure 'init' 
in procedure 'ocd_bouncer'

I'm not sure where the problem is, Is there anything need to change in nucleo-l152re.cfg?

Also, I'm a little curious about openocd, It seems it can start a gdbserver and telnetd with stlink. But what's it for in this case? can I just not implement the Openocd Target? (It seems need telnet, so confused.)

THANKS A LOT!!!

Can I do the experiment without equipment

Hello, I haven't bought the required equipment at present, can I try to carry out the experiment through PE/PM: Partial Emulation with Peripheral Modeling.
As described in the paper:
The firmware is emulated and peripheral interaction is handled by mimicking peripherals behavior with ded- icated scripts inside Avatar, which allows to conduct experiments without having a physical device present.
If so , how can I do it . Thanks

error when using default fuzzing?

I try the sample, but it does not work.

stly@ubuntu:~/Documents/Kernel_Fuzzing/Tools/vagrant/experiments/scripts$ python wycinwyc_fuzzer.py -p
usage: wycinwyc_fuzzer.py [-h] [-m {0,1,2,3}] [-s SERIAL_DEVICE] [-p PORT]
                          [-t TIMEOUT] [-b BINARY] [-e ELF_FILE] [--callstack]
                          [--callframe] [--segment] [--format] [--heap_object]
                          [--stack_object] [-r] [-d DURATION] [--no-ykush]
                          [-c CORRUPTION_PROBABILITY] [-o OUTPUT_DIR] [-v]

python2 scripts/wycinwyc_fuzzer.py -d 3600 -t 1 -m 0 -c 0.0 
Traceback (most recent call last):
  File "scripts/wycinwyc_fuzzer.py", line 387, in <module>
    main(**kwargs)
  File "scripts/wycinwyc_fuzzer.py", line 326, in main
    fuzzing_session.fuzz()
  File "/usr/local/lib/python2.7/dist-packages/boofuzz/sessions.py", line 403, in fuzz
    self._main_fuzz_loop(self._iterate_protocol())
  File "/usr/local/lib/python2.7/dist-packages/boofuzz/sessions.py", line 470, in _main_fuzz_loop
    self._fuzz_current_case(*fuzz_args)
  File "/usr/local/lib/python2.7/dist-packages/boofuzz/sessions.py", line 939, in _fuzz_current_case
    target.open()
  File "/usr/local/lib/python2.7/dist-packages/boofuzz/sessions.py", line 73, in open
    self._target_connection.open()
  File "/usr/local/lib/python2.7/dist-packages/boofuzz/serial_connection.py", line 68, in open
    self._connection.open()
  File "/usr/local/lib/python2.7/dist-packages/boofuzz/serial_connection_low_level.py", line 41, in open
    self._device = serial.Serial(port=self.port, baudrate=self.baudrate)
  File "/usr/local/lib/python2.7/dist-packages/serial/serialutil.py", line 240, in __init__
    self.open()
  File "/usr/local/lib/python2.7/dist-packages/serial/serialposix.py", line 268, in open
    raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))
serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyUSB0: [Errno 2] No such file or directory: '/dev/ttyUSB0'

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.