Skip to content

Instantly share code, notes, and snippets.

View iagox86's full-sized avatar

Ron Bowes iagox86

View GitHub Profile
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
int main()
{
FILE *f = fopen("test.txt", "r");
double array[3][10000];
char line[1024];
set notimeout
set ttimeout
set timeoutlen=20
test = function()
i = Ntlm:new('Domain\\User', 'Password')
i:set_server("Server")
i:set_workstation("COMPUTER")
i:set_time(1)
i:set_client_challenge("\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa")
i:set_server_challenge("\x01\x23\x45\x67\x89\xab\xcd\xef")
i:set_flags(bit.bor(NTLMSSP_NEGOTIATE_KEY_EXCH, NTLMSSP_NEGOTIATE_56, NTLMSSP_NEGOTIATE_128, NTLMSSP_NEGOTIATE_VERSION, NTLMSSP_TARGET_TYPE_SERVER, NTLMSSP_NEGOTIATE_ALWAYS_SIGN, NTLMSSP_NEGOTIATE_NTLM, NTLMSSP_NEGOTIATE_SEAL, NTLMSSP_NEGOTIATE_SIGN, NTLMSSP_NEGOTIATE_OEM, NTLMSSP_NEGOTIATE_UNICODE))
i:print()
end
-- if(bit.band(flags, NTLMSSP_NEGOTIATE_56) ~= 0) then
-- return string.sub(RandomSessionKey, 1, 6) + "\xa0"
-- else
-- return string.sub(RandomSessionKey, 1, 4) + "\xE5\x38\xB0"
-- end
-
function! ToggleNuMode()
if(&rnu == 1)
set nu
else
set rnu
endif
endfunction
nnoremap <leader>b :call ToggleNuMode()<CR>
if(byte_count == 4) then
local pos, value = bin.unpack(endian .. "I", exif_data, pos)
print("value = " .. value)
else
local pos, offset = bin.unpack(endian .. "I", exif_data, pos)
print("TODO")
os.exit()
end
# This file does everything relatd to accounts and switching accounts
# Load the default account information
source ~/.mutt/accounts/ron-at-skullsecurity.net
# Create some macros to switch between accounts
macro generic,index,pager 1 ":source ~/.mutt/accounts/ron-at-skullsecurity.net\n"
macro generic,index,pager 2 ":source ~/.mutt/accounts/ron.bowes-at-javaop.com\n"
macro generic,index,pager 3 ":source ~/.mutt/accounts/ron-at-dash9security.com\n"
set from="ron@skullsecurity.net"
s
set folder_format = "[$fr