mirror of
https://github.com/jedisct1/dnsblast.git
synced 2025-01-18 12:05:35 +00: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) {
|
||||
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 {
|
||||
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) {
|
||||
get_random_name(name, sizeof name);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user