back soft

مطالب مرتبط با «running exe from python» در back soft | نویسنده: استخدام کار

Running EXE from buffer in memory

Vote count: 0 i'm trying to make exe packer 5 extract exe to buffer(in my case: vector) add new section get offset of new EP and run but after call newmain i got 0xC0000005 main.cpp: pastebin #define WIN32_LEAN_AND_MEAN #include #include "main.h" typedef struct _BASE_RELOCATION_ENTRY { WORD Offset : 12; WORD Type : 4; } BASE_RELOCATION_ENTRY; BOOL applyRelocBlock(BASE_RELOCATION_ENTRY* block, size_t entriesNum, DWORD page, PVOID newBase) { PVOID ImageBaseAddress = NtCurrentTeb()->Peb->ImageBaseAddress; BASE_RELOCATION_ENTRY* entry = block; for (int i = 0; i < entriesNum; i++) { DWORD offset = entry->Offset; DWORD type = entry->Type; if (entry == NULL || type == 0 || offset == 0) { //printf("...

ادامه مطلب

bash script running correctly in linux machine but not when executed via jenkins from a windows machine

Vote count: 0 I have a bash script as below: ------------------------------ #!/bin/bash VAR_A=$(echo "cat //artifact/fileName" | xmllint --shell BuildResult.xml | sed '/^/ >/d' | sed 's/]*.//g' | tr -d 'n' | awk -F"-------" '{print $3}') echo $VAR_A ------------------------------ I have jenkins installed on a windows machine and via cygwin openssh, I am coecting to the suse linux machine in which this script is residing. When I am calling the above script via an ANT sshexec command configured in Jenkins, it is ruing ok but no output. On the other hand, when I am ruing the same script from within the SUSE Linux system, it is echoing current result. I am not able to figure...

ادامه مطلب