Skip to content

Instantly share code, notes, and snippets.

View vmayoral's full-sized avatar

Víctor Mayoral Vilches vmayoral

View GitHub Profile
@vmayoral
vmayoral / fin_ack_dos_ros.py
Created September 6, 2020 09:48
FIN-ACK attack proof-of-concept for disrupting ROS and ROS-Industrial setups.
"""
FIN-ACK attack for ROS
DISCLAIMER: Use against your own hosts only! By no means Alias Robotics
or the authors of this exploit encourage or promote the unauthorized tampering
with running robotic systems. This can cause serious human harm and material
damages.
"""
from scapy.all import *
@vmayoral
vmayoral / poc.sh
Created February 25, 2023 08:30
Proof of concept of Data Distribution Service (DDS) Chain of Trust (CoT) violation
#!/bin/sh
msg () {
echo
: "=== $* ==="
sleep 2
}
. /opt/ros/foxy/setup.sh
set -x
@vmayoral
vmayoral / README.md
Created September 7, 2021 11:51
Is it possible to install ROS2 in petalinux? - Zynq UltraScale+ MPSoC

Hello @jg_spitfire,

Short answer, absolutely, yes. It's possible. I discussed the different possibilities for the ZCU102 in here. I'll be speaking about this particularly in about a week in Adapt 2021. Check out the following robotics talks we're giving:

  1. Expanding Kria SOMs Beyond Vision AI (with ABB Robotics)
  2. Bringing Adaptive Computing To Robotics
  3. ROS 2 Acceleration

You can register for adapt in here.

@vmayoral
vmayoral / syn_ack_dos_ros.py
Created September 6, 2020 09:46
SYN-ACK DoS attack proof-of-concept for disrupting ROS and ROS-Industrial setups.
"""
SYN-ACK DoS attack for ROS
DISCLAIMER: Use against your own hosts only! By no means Alias Robotics
or the authors of this exploit encourage or promote the unauthorized tampering
with running robotic systems. This can cause serious human harm and material
damages.
"""
import sys
@vmayoral
vmayoral / alurity.yml
Created September 5, 2020 16:25
Alurity YAML file to launch and reproduce the general use case of the "Red teaming ROS-Industrial" article
############
# Networks
############
networks:
# Level 1: Control Networks, connect controllers and control stations
# for each controller, we expect a dedicated control-network
- network:
- name: control-network_c1_s1
- driver: overlay
@vmayoral
vmayoral / gist:32292d47b84335f698bd
Last active August 23, 2020 18:57
POSIX GCC FreeRTOS compilation error
...
Finished building: ../AsyncIO/PosixMessageQueueIPC.c
Building target: FreeRTOS_Posix
Invoking: GCC C Linker
gcc -pthread -lrt -o"FreeRTOS_Posix" ./main.o ./ParTest/ParTest.o ./FreeRTOS_Kernel/croutine.o ./FreeRTOS_Kernel/list.o ./FreeRTOS_Kernel/queue.o ./FreeRTOS_Kernel/tasks.o ./FreeRTOS_Kernel/portable/MemMang/heap_3.o ./FreeRTOS_Kernel/portable/GCC/Posix/port.o ./FileIO/fileIO.o ./Common_Demo/Minimal/GenQTest.o ./Common_Demo/Minimal/QPeek.o ./Common_Demo/Minimal/blocktim.o ./Common_Demo/Minimal/countsem.o ./Common_Demo/Minimal/crflash.o ./Common_Demo/Minimal/crhook.o ./Common_Demo/Minimal/recmutex.o ./Common_Demo/Full/BlockQ.o ./Common_Demo/Full/PollQ.o ./Common_Demo/Full/death.o ./Common_Demo/Full/dynamic.o ./Common_Demo/Full/events.o ./Common_Demo/Full/flash.o ./Common_Demo/Full/flop.o ./Common_Demo/Full/integer.o ./Common_Demo/Full/print.o ./Common_Demo/Full/semtest.o ./AsyncIO/AsyncIO.o ./AsyncIO/AsyncIOSerial.o ./AsyncIO/AsyncIOSocket.o ./AsyncIO/PosixMessageQueueIPC.o
./AsyncIO/Pos
alurity run registry.gitlab.com/aliasrobotics/offensive/alurity/robo_clearpath_jackal:raw  ✔  6569  21:45:44
raw: Pulling from aliasrobotics/offensive/alurity/robo_clearpath_jackal
a77401ed8908: Pull complete
Digest: sha256:17b042b1534cdfe6730b02aaca065dcc822a3e76f4d48fd24956101bc561e4c6
Status: Downloaded newer image for registry.gitlab.com/aliasrobotics/offensive/alurity/robo_clearpath_jackal:raw
registry.gitlab.com/aliasrobotics/offensive/alurity/robo_clearpath_jackal:raw
Downloading images, this could take a bit
- Downloading registry.gitlab.com/aliasrobotics/offensive/alurity/alurity:latest...
latest: Pulling from aliasrobotics/offensive/alurity/alurity
23884877105a: Already exists
alias@MacBook-Pro-de-alias  ~/Alias/Offensive/alurity   master ● ?  alurity restart  ✔  4784  11:06:53
Downloading images, this could take a bit
registry.gitlab.com/aliasrobotics/offensive/alurity/ros2/ros2:latest already available locally
All images downloaded successfully
registry.gitlab.com/aliasrobotics/offensive/alurity/ros2/ros2:latest, successfully init.
Ready! alurity enter, to start hacking.
alias@MacBook-Pro-de-alias  ~/Alias/Offensive/alurity   master ● ?  alurity restart  ✔  4785  11:06:57
Stopping subject1
Cleaning up network net1
Docker network net1 already present in your system, attaching to it.
Process: rviz2 [85098]
Path: /Users/USER/*/rviz2
Identifier: rviz2
Version: 0
Code Type: X86-64 (Native)
Parent Process: bash [3617]
Responsible: rviz2 [85098]
User ID: 501
Date/Time: 2019-05-22 23:38:33.890 +0200
victor:/tmp/moveit2 (robot-model-tests4)$
| => docker build -t moveit2-robot-model-test .docker/ci/
Sending build context to Docker daemon 6.144kB
Step 1/16 : FROM ubuntu:bionic
---> 1d9c17228a9e
Step 2/16 : LABEL maintainer="Lander Usategui lander@erlerobotics.com"
---> Using cache
---> df22dc8b8bbd
Step 3/16 : ENV TERM xterm
---> Using cache