mirror of
https://github.com/jedisct1/dnsblast.git
synced 2025-04-18 00:30:24 +01:00
Dirty, dirty hack to change source port everytime
This commit is contained in:
parent
22b6cb6c38
commit
30e7d8fd0f
16
dnsblast.c
16
dnsblast.c
@ -351,15 +351,15 @@ main(int argc, char *argv[])
|
|||||||
if (argc > 4) {
|
if (argc > 4) {
|
||||||
port = argv[4];
|
port = argv[4];
|
||||||
}
|
}
|
||||||
if ((sock = get_sock(host, port, &ai)) == -1) {
|
|
||||||
perror("Oops");
|
|
||||||
exit(EXIT_FAILURE);
|
|
||||||
}
|
|
||||||
init_context(&context, sock, ai, fuzz);
|
|
||||||
context.pps = pps;
|
|
||||||
srand(0U);
|
|
||||||
assert(send_count > 0UL);
|
|
||||||
do {
|
do {
|
||||||
|
if ((sock = get_sock(host, port, &ai)) == -1) {
|
||||||
|
perror("Oops");
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
init_context(&context, sock, ai, fuzz);
|
||||||
|
context.pps = pps;
|
||||||
|
srand(0U);
|
||||||
|
assert(send_count > 0UL);
|
||||||
if (rand() > REPEATED_NAME_PROBABILITY) {
|
if (rand() > REPEATED_NAME_PROBABILITY) {
|
||||||
get_random_name(name, sizeof name);
|
get_random_name(name, sizeof name);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user