@@ -35,7 +35,7 @@ BYTE* shellcodify(BYTE *my_exe, size_t exe_size, size_t &out_size, bool is64b)
3535 int res_id = is64b ? STUB64 : STUB32;
3636 BYTE *stub = peconv::load_resource_data (stub_size, res_id);
3737 if (!stub) {
38- std::cout << " Stub not loaded" << std::endl;
38+ std::cout << " [-] Stub not loaded" << std::endl;
3939 return nullptr ;
4040 }
4141 size_t ext_size = exe_size + stub_size;
@@ -57,20 +57,20 @@ bool is_supported_pe(BYTE *my_exe, size_t exe_size)
5757{
5858 if (!my_exe) return false ;
5959 if (!peconv::has_relocations (my_exe)) {
60- std::cout << " The PE must have relocations!" << std::endl;
60+ std::cout << " [-] The PE must have relocations!" << std::endl;
6161 return false ;
6262 }
6363 if (peconv::get_subsystem (my_exe) != IMAGE_SUBSYSTEM_WINDOWS_GUI) {
6464 std::cout << " [WARNING] This is a console application! The recommended subsystem is GUI." << std::endl;
6565 }
6666 IMAGE_DATA_DIRECTORY* dotnet_dir = peconv::get_directory_entry (my_exe, IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR);
6767 if (dotnet_dir) {
68- std::cout << " .NET applications are not supported!" << std::endl;
68+ std::cout << " [-] .NET applications are not supported!" << std::endl;
6969 return false ;
7070 }
7171 IMAGE_DATA_DIRECTORY* tls_dir = peconv::get_directory_entry (my_exe, IMAGE_DIRECTORY_ENTRY_TLS);
7272 if (tls_dir) {
73- std::cout << " Applications with TLS callbacks are not supported!" << std::endl;
73+ std::cout << " [-] Applications with TLS callbacks are not supported!" << std::endl;
7474 return false ;
7575 }
7676 return true ;
@@ -104,7 +104,7 @@ int main(int argc, char *argv[])
104104 std::cout << " Reading module from: " << in_path << std::endl;
105105 BYTE *my_exe = peconv::load_file (in_path.c_str (), exe_size);
106106 if (!my_exe) {
107- system ( " pause " ) ;
107+ std::cout << " [-] Could not read the input file! " << std::endl ;
108108 return -1 ;
109109 }
110110 if (!is_supported_pe (my_exe, exe_size)) {
@@ -121,7 +121,7 @@ int main(int argc, char *argv[])
121121 return -3 ;
122122 }
123123 if (peconv::dump_to_file (out_str.c_str (), ext_buf, ext_size)) {
124- std::cout << " [+] Saved to file : " << out_str << std::endl;
124+ std::cout << " [+] Saved as : " << out_str << std::endl;
125125 }
126126 else {
127127 std::cout << " [-] Failed to save the output!" << std::endl;
0 commit comments