Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fuzzBackEnd
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
钱炳权
fuzzBackEnd
Commits
b4175ef1
Commit
b4175ef1
authored
May 08, 2024
by
钱炳权
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dockercompose、协议模板参数格式修改、新增协议模板协议
parent
011347e6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
76 additions
and
9 deletions
+76
-9
docker-compose.yml
docker-compose.yml
+42
-0
FuzzIntegration.java
...c/main/java/com/example/fuzzControll/FuzzIntegration.java
+1
-0
KittyProperties.java
...n/java/com/example/fuzzControll/conf/KittyProperties.java
+9
-0
CmdConstent.java
.../java/com/example/fuzzControll/constents/CmdConstent.java
+2
-1
ProtocolConstent.java
.../com/example/fuzzControll/constents/ProtocolConstent.java
+5
-0
ProtocolTemplateImpl.java
...ample/fuzzControll/service/impl/ProtocolTemplateImpl.java
+0
-0
application-dev.yml
fuzzIntegration/src/main/resources/application-dev.yml
+12
-6
FuzzBackendMaster.java
...java/com/example/fuzzbackendmaster/FuzzBackendMaster.java
+1
-0
application-dev.yml
fuzzbackendmaster/src/main/resources/application-dev.yml
+4
-2
No files found.
docker-compose.yml
0 → 100644
View file @
b4175ef1
# 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
fuzzIntegration/src/main/java/com/example/fuzzControll/FuzzIntegration.java
View file @
b4175ef1
...
...
@@ -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!"
);
}
}
fuzzIntegration/src/main/java/com/example/fuzzControll/conf/KittyProperties.java
View file @
b4175ef1
...
...
@@ -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
;
...
...
fuzzIntegration/src/main/java/com/example/fuzzControll/constents/CmdConstent.java
View file @
b4175ef1
...
...
@@ -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"
;
...
...
fuzzIntegration/src/main/java/com/example/fuzzControll/constents/ProtocolConstent.java
View file @
b4175ef1
...
...
@@ -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 "
;
}
fuzzIntegration/src/main/java/com/example/fuzzControll/service/impl/ProtocolTemplateImpl.java
View file @
b4175ef1
This diff is collapsed.
Click to expand it.
fuzzIntegration/src/main/resources/application-dev.yml
View file @
b4175ef1
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
fuzzbackendmaster/src/main/java/com/example/fuzzbackendmaster/FuzzBackendMaster.java
View file @
b4175ef1
...
...
@@ -9,5 +9,6 @@ public class FuzzBackendMaster {
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
FuzzBackendMaster
.
class
,
args
);
System
.
out
.
println
(
"Start successfully!"
);
}
}
fuzzbackendmaster/src/main/resources/application-dev.yml
View file @
b4175ef1
...
...
@@ -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
:
./fuzzbackendmaster
log
/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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment