Commit b4175ef1 by 钱炳权

dockercompose、协议模板参数格式修改、新增协议模板协议

parent 011347e6
# yaml 配置
version: '3'
services:
nacos:
image: nacos
ports:
- "8848:8848"
privileged: true
restart: always
environment:
MODE: standalone
fuzz-backend-master:
depends_on:
- nacos
image: fuzz-master:1
ports:
- "8101:8101"
volumes:
- /home/qbq:/home
privileged: true
restart: always
command:
- sh
- -c
- |
java -jar /home/fuzzbackendmaster-0.0.1-SNAPSHOT.jar --nacos-docker.ip=172.18.0.2
fuzz-integration:
depends_on:
- nacos
image: fuzz-integtation:1
ports:
- "8102:8102"
volumes:
- /home/qbq:/home
privileged: true
restart: always
command:
- sh
- -c
- |
source /etc/profile
java -jar /home/fuzzIntegration-0.0.1-SNAPSHOT.jar --fuzzBackEndMaster-docker.ip=172.18.0.3 --nacos-docker.ip=172.18.0.2
......@@ -9,6 +9,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
public class FuzzIntegration {
public static void main(String[] args) {
SpringApplication.run(FuzzIntegration.class, args);
System.out.println("Start successfully!");
}
}
......@@ -16,6 +16,15 @@ public class KittyProperties {
String reportHttp;
String mutationPath;
String aflnetPath;
String outputPath;
public String getOutputPath() {
return outputPath;
}
public void setOutputPath(String outputPath) {
this.outputPath = outputPath;
}
public String getAflnetPath() {
return aflnetPath;
......
......@@ -9,7 +9,8 @@ public class CmdConstent {
public static final String DELETE_FILE = "rm -r ";
public static final String COUNT_FILE = "ls -l | grep \"^-\" | wc -l";
public static final String COUNT_DIR = "ls -l | grep \"^d\" | wc -l";
public static final String RUN_AFLNET_BEFORE = "afl-fuzz -d -i " + kittyProperties.getAflnetPath() + "aflnet/tutorials/live555/in-rtsp -o ";
public static final String RUN_AFLNET_BEFORE = "afl-fuzz -d -i " + kittyProperties.getAflnetPath() + "aflnet/tutorials/live555/in-rtsp -o "+
kittyProperties.getOutputPath();
public static final String RUN_AFLNET_AFTER = " -x " + kittyProperties.getAflnetPath() + "aflnet/tutorials/live555/rtsp.dict ";
public static final String RUN_PING = "ping www.baidu.com";
......
......@@ -43,4 +43,9 @@ public class ProtocolConstent {
public static final String TFTP = "tftp_scapy_field.py ";
public static final String UDP = "udp_raw.py ";
public static final String TCP = "tcp_raw.py ";
public static final String NTF = "ntf_udp.py ";
public static final String RIPNG = "ripng_udp.py ";
public static final String RSTP = "rstp_raw.py ";
public static final String SMTP = "smtp_tcp.py ";
public static final String TIRP = "tirp_udp.py ";
}
logging:
pattern:
file: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
file:
# 默认日志路径
path: ./log
path: ./fuzzintegrationlog/log
level:
root: info
org.springframework.data.mongodb.core: debug
......@@ -19,7 +17,8 @@ filepath:
seedPath: "/usr/fuzzenv/fuzzenv/aflnet/tutorials/live555/in-rtsp"
kitty:
aflnetPath: "/usr/fuzzenv/fuzzenv/"
aflnetPath: "/usr/fuzzenv/fuzzenv/"#alfnet路径
outputPath: "/home/" #alfnet输出路径
path: "/usr/fuzzenv/fuzzenv/fuzz50/kitty/renix/" #kitty项目下的各协议生成模板python文件路径
venvPath: "/usr/fuzzenv/fuzzenv/fuzz50/kitty/venv/bin/python"
methodPath: "/usr/fuzzenv/fuzzenv/fuzz50/kitty/2020test/"#kitty下变异方法路径
......@@ -33,6 +32,12 @@ spring:
cloud:
nacos:
discovery:
server-addr: http://192.168.50.247:8848
server-addr: http://${nacos-docker.ip}:8848
path:
webSocketUri: "ws://192.168.50.247:8101/websocket/testResult/"
webSocketUri: ws://${fuzzmaster-docker.ip}:8101/websocket/testResult/
nacos-docker:
ip: 192.168.50.247
fuzzmaster-docker:
ip: 192.168.50.247
\ No newline at end of file
......@@ -9,5 +9,6 @@ public class FuzzBackendMaster {
public static void main(String[] args) {
SpringApplication.run(FuzzBackendMaster.class, args);
System.out.println("Start successfully!");
}
}
......@@ -4,7 +4,7 @@ logging:
console: "%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n"
file:
# 默认日志路径
path: ./fuzzbackendmaster/log
path: ./fuzzbackendmasterlog/log
level:
root: info
org.springframework.data.mongodb.core: debug
......@@ -17,5 +17,7 @@ spring:
cloud:
nacos:
discovery:
server-addr: http://192.168.50.247:8848
server-addr: http://${nacos-docker.ip}:8848
nacos-docker:
ip: 192.168.50.247
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment