Skip to content

Commit

Permalink
fix(dns): Forgot DNS ID to Map
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Bode <eric.bode@foundries.io>
  • Loading branch information
StealthyCoder committed Oct 9, 2023
1 parent 5c9ffe3 commit 1052e69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bash/dns/dns.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ function dns.poc {
network.udp 8.8.8.8 53
# RECORD symbolizing QUERY for A for example.com
# https://routley.io/posts/hand-writing-dns-messages
# NOTE: ID = AAAA in decimal is 43690
printf "\xAA\xAA\x01\x00\x00\x01\x00\x00\x00\x00\x00\x00\x07\x65\x78\x61\x6d\x70\x6c\x65\x03\x63\x6f\x6d\x00\x00\x01\x00\x01" >&"$CRUCIBLE_NETWORK_FD"
network.udp.receive "$CRUCIBLE_NETWORK_FD"
maps.entries DNS_RESPONSE_"$id"
maps.entries DNS_RESPONSE_43690
logging.info "Things left:"
logging.info "1. Write different query types (A, AAAA, TXT...)"
logging.info "2. Parse input into request"
Expand Down

0 comments on commit 1052e69

Please sign in to comment.