Skip to main content

default netplan

Nov 18, 2022AustinLeath
Loading...

More Plaintext Posts

Untitled

Feb 25, 2025AustinLeath

0 likes • 2 views

103 C
109 C
112 C
115 A B D E
118 B
118 B
121 B
203 A C D E
206 C
209 A
212 C
215 D
218 ?
221 A B C
225 B, OR A
302 C D
303 C
305 A,B
308 C
311 A B
314 B,D OR B,C
317 C
320 B
322 B
403 C
404 A
406 A C D E
409 C
217 NOT B 172.16.0.0/16 172.17.0.0/16 192.168.50.0/24 192.168.55.0/24 10.9.0.0/16
319 NOT B The traffic selectors do not include the source address.
202 C There is no route for a VPC peering (pcx-xxx) and only a local route in rtb-xxxxxx854
105 C Yes, AWS VPN-2 tunnels will come UP and EC2 can reach only a subset of the 120 unique prefixes.
117 A Peer A will delete the outgoing SA, while processing the Delete request from Peer B
222 B 2 DX PEs are launched and 1 Distinguished Endpoint.
408 C (((m1+m2)/60)*8)/1000000
214 B All of the time
304 MAYBE ONE OF C E - The customer has an ACL not allowing inbound traffic. / The customer has entered the wrong CGW address.
108 NOT A IKE Fragmentation will fragment both IKE_SA_INIT and IKE_AUTH message.
102 NOT C Sends Informational Message encrypted with the IKE SA, Informing the Peer to DELETE active Child SAs.
316 A The TS does not include the source address.
405 A Getafix had a single failed healthcheck to the PE.

Untitled

Sep 27, 2024popeyevn

0 likes • 1 view

alert('123');

</script>

Mar 29, 2023Helper

1 like • 3 views

test

Untitled

Aug 7, 2024naiferomar366-60ef

0 likes • 1 view

gggg

Untitled

Aug 7, 2024naiferomar366-60ef

0 likes • 1 view

aaaa

MASM Over Explained

Jun 29, 2021LeifMessinger

0 likes • 2 views

; Sample project from the video "Setup Visual Studio for Assembly MASM" https://www.youtube.com/watch?v=LqyVybUodXE
; Basically reverses a string using the stack. It stores the result where the string was defined, modifying the string itself in memory.
.386
;x86 instruction set. This is only nessesary in x32 MASM.
.model flat, stdcall
;Defines the memory model, and the calling convention http://masm32.com/board/index.php?topic=6942.msg74381#msg74381
.stack 4096
;Sets the size of the stack. 4096 is 1024*4 which is 4 kilobytes.
;option casemap:none
;Make labels case sensitive, so things like ExitProcess and exitprocess and myName and myname are different.
;include \masm32\include\windows.inc
;include \masm32\include\kernel32.inc
;includelib \masm32\lib\kernel32.lib
;Some system calls or something are defined here. Not needed if you just use assembly along side c++ or c. Also can't be used if on anything other than windows.
ExitProcess PROTO, dwEXITCODE:DWORD
;Define the ExitProcess function prototype. ExitProcess is defined somewhere in the Windows API on the OS level.
.data
;Starts the data section of the program, where a lot of read-write memory is needed
myName BYTE "Leif Messinger", 0
;Allocates a string named myName initialized with LeifMessinger followed by a terminating null character
myNameLength = ($ - myName) - 1
;Allocates a 32 bit number which is initialized to be the current pointer ($), minus the pointer to the start of the string, minus one (because of the null terminating character)
.code
;Starts the section of the program where your code goes. Is the same as .text, and in theory, the name doesn't even matter. The importance is that it ends the data section, which was read-write. Code should be read only.
main PROC
;States the start of the main procedure. This is where the program starts executing.
mov ecx, myNameLength
;Sets the loop counter to myNameLength. The loop counts backwards until it reaches zero, meaning that it loops myNameLength times.
mov esi, 0
;Sets the general purpose register esi to 0. esi was named because it's a "source index" when moving stuff. It's basically like an i variable in c.
StackIt:
;Flag to the start of the loop. Ahh, tss push it
movzx eax, myName[esi]
;movzx stands for move with zero extend. It pads the source data (myName[esi]) with enough zeros to fill 32 bits, or enough for the push and pop instructions.
push eax
;Pushes the character we just got out of that string (and padded with zeros) to the stack
inc esi
;Increments our index
loop StackIt
;Decrements ecx and checks if it is equal to 0. If it isn't, jump to StackIt
mov ecx, myNameLength
;Sets the loop counter to myNameLength. The loop counts backwards until it reaches zero, meaning that it loops myNameLength times.
mov esi, 0
;Sets the general purpose register esi to 0. esi was named because it's a "source index" when moving stuff. It's basically like an i variable in c.
PopIt:
;Flag to the start of the loop.
pop eax
;Pops a 32 bit number off the stack and places it in eax
mov myName[esi], al
;Move the lower byte of eax (al) to the string (myName) at the index esi. This overwrites one character of the string.
inc esi
;Increments our index
loop PopIt
;Decrements ecx and checks if it is equal to 0. If it isn't, jump to StackIt
INVOKE ExitProcess, 0
;Exits the program with the error code of 0. The return type was declared in that prototype at the top, and defined by the operating system
main ENDP
;States the end of the main procedure
END main
;Declares the end of the file. Also defines where the start of the program is, which is main.
;Normally the linker looks for main as a place to start, but if you are writing pure assembly, that is need.
;Saying END without a pointer to the start is also alowed for people who like to live dangerously.