How to save a Single Packet Authorisation packet using the fwknop-client? - cryptography

I was trying to save a SPA packet created via the fwknop-client on a client in client-server architecture.
The command that I have used is as follows
"fwknop -A tcp/22 -D server-ip --key-gen --use-hmac --save-packet --save-packet-file filename.pkt --save-rc-stanza -vv"
The command executes successfully but I'm not able to save the packet, the packet is not found in the system.
I also trying to append the packet using the "--save-packet-append" tag, but still not able to get the output.
The purpose for doing to above is to obtain the SPA packet and append the client certificate (asymmetric encryption) to this SPA packet which will be sent.
How can i save this packet to fulfil my purpose ?
Thank You

Related

LWIP httpd how to receive a bin file uploaded through html page?

I am using LWIP httpd cgi to receive html page POST and GET . Here i am trying to update the firmware using bin file uploaded through the html page . But after fe wpackets the connection closes and also not getting timew toprocessess the packet recived ,if i try to write the data received to flash then next packet wont receive and connection close i am using
err_t httpd_post_receive_data(void *connection, struct pbuf *p)
to receive file 536 sized packet after header removed receiving
it seems the timing or size to hold the packets are not enough , tried changing diffrent related macros of LWIP but no use the pbuf payload size also checked

Should the NOTIFY/M-SEARCH messages be all headers when using spring-integration-ip to send messages?

I have written an application, that successfully listens to a multicast-host 239.255.255.250:1900 and [FF02::C]:1900. I receive the desired NOTIFY and M-SEARCH messages using spring-integration-ip's MulticastSendingMessageHandler.
However: while I am able to send messages using the UnicastSendingMessageHandler, it does not seem like e.g. VLC will recognize my running server.
I went through the UPnP Device Architecture PDF back and forth and manually sent the 3+2+1 NOTIFY messages and also responded to M-SEARCH, but somehow I am not able to make e.g. VLC recognize my server.
I also see no access on my HTTP server (separate application on a different port, but properly linked in the LOCATION attribute of the NOTIFY and M-SEARCH-response messages). No attempts at all.
Do I need to send the data using MessageHeaders (headers) instead of payload? What's the pre-requisite for a possible media server to be listed? Sending the NOTIFY messages? Responding to M-SEARCH messages? More?
And what are the allowed devicetype and servicetype values? Or do they vary?
If anyone wants, I can add some code, but the listening part is working alright and messages are sent, just supposedly not understood by their receivers (sending using Unicast to the address, who sent the M-SEARCH message, but on port 1900).
Honestly: I am not sure how to even word my question(s). I tried reading through the RSSDP source code, but I still do not fully get it.
Any pointers are greatly welcomed.

Is it possible to configure the gr-ieee-80211 wifi_rx file to receive higher level layers?

I would like to ask if it is possible to receive UDP or TCP packets instead of just the Physical layer by configuring the wifi_rx.grc 1 flow graph in GNU Radio.
wifi_rx.grc 1 is from the example in gr-ieee80211
I am using a LimeSDR-Mini as rx source
You can use the Wireshark Connector block to write the decoded frames in a PCAP file and inspect all layers with Wireshark/tcpdump/tshark just with like a normal WLAN card.
The flow graph you are referring to already contains these blocks albeit they are disabled by default. Click on them and click Enable in the context menu. Then run the flow graph and open the file in Wireshark. If you want live decoding you can write to a Linux pipe. See the rx_demo.sh script in the apps folder on how to do that.

External Authentication security level (SCP03) and the expected data for them

I am trying to do External authentication on SMART CARD, using SCP03. The value of P1 is the security level that we are using for the authentication.
May I know the possible values of the security levels and the data I need to pass for them?
If i understand your question correctly, there are three security level for command apdu:
none: nothing is secure
mac: command is clear but mac of command is calculated and added to the command
enc: command is encrypted and mac of command added to thecommand
there are another two option for response security:
rmac: like mac for response apdu
renc: like enc for response apdu
I suggest you to study Globalplatform specification:
https://www.globalplatform.org/specificationscard.asp

Kamailio+rtpengine+SIP.js Failed to set remote answer sdp: Called with SDP without DTLS fingerprint

I just install Kamailio 4.4.5 + RTPEngine on Ubuntu Server 16.04
all config copy from https://github.com/whisk/WEBRTC-to-SIP
And using SIP.js latest version to make call between 2 chrome browser.
SIP user register successfully and can using text chat
But when User Invite another user any his Accept call, get this error
Failed to set remote answer sdp: Called with SDP without DTLS fingerprint.
How to solve this issue???
Use sdp_with_transport_like(...) instead of sdp_with_transport(...), because the transport string is UDP/TLS/RTP/SAVPF and the second function is doing an exact match, but the parameter in referred example is only RTP/SAVPF.