Skip to content

Conversation

@00oskpet
Copy link
Collaborator

Initial draft without parameters, currently cannot learn a complete handshake.

@00oskpet
Copy link
Collaborator Author

00oskpet commented May 12, 2025

I think I'm running into a possible permissions issue. I get the following when trying to run the scandic configuration.
se.uu.it.dtlsfuzzer.components.sul.core.TlsSulAdapterException: java.net.ConnectException: Connection refused
This is the command I'm trying to run:
java -jar target/dtls-fuzzer-0.3-SNAPSHOT-ra-jar-with-dependencies.jar args/scandium/learn_scandium_server_psk_ra

@kostis
Copy link
Contributor

kostis commented May 12, 2025

I suggest you update file .github/workflows/ci.yml by adding one more test configuration that exercises RA learning (e.g. on Scandium or some other SUT), so that we can all clearly see the possible error that occurs or the final model that is produced. I can provide some help, if it's not clear how to do this.

Now, regarding the issue you experiencing when running the above command, I also get the same error ( java.net.ConnectException: Connection refused) when running it on that particular machine, so the error is due to some other (generic) reason, not due to not having sufficient permissions (on that machine). But, just to be sure, you can try to build DTLS-Fuzzer on your machine and see whether you get something different there or not.

@kostis
Copy link
Contributor

kostis commented May 13, 2025

Update on the above. The issue you are experiencing is most likely due to not having set up the Scandium 2.6.2 SUT.
Start by

./setup_sut.sh scandium-2.6.2

After that, you can issue the command you want to test and you will most likely experience another error from Java, not a java.net.ConnectException. In all likelihood, it will be similar to the following:

...
The lower layer did not produce a data stream: 
java.net.SocketTimeoutException: Receive timed out
        at java.base/sun.nio.ch.DatagramChannelImpl.trustedBlockingReceive(DatagramChannelImpl.java:703) ~[?:?]
        at java.base/sun.nio.ch.DatagramChannelImpl.blockingReceive(DatagramChannelImpl.java:633) ~[?:?]
        at java.base/sun.nio.ch.DatagramSocketAdaptor.receive(DatagramSocketAdaptor.java:240) ~[?:?]
        at java.base/java.net.DatagramSocket.receive(DatagramSocket.java:700) ~[?:?]

In any case, the errors have nothing to do with (permissions on) the machine you are using.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants