executable

JMP to absolute address (op codes)

风格不统一 提交于 2020-05-07 12:19:50
问题 I'm trying to code a exe packer/protector as a way of learning more about assembler, c++, and how PE files work. I've currently got it working so the section containing the EP is XORed with a key and a new section is created that contains my decryption code. Everything works out great except when I try and JMP to the original EP after decryption. Basically I do this: DWORD originalEntryPoint = optionalHeader->AddressOfEntryPoint; // -- snip -- // crypted.put(0xE9); crypted.write((char*)

pyinstaller .exe works locally but fails when called by C#?

霸气de小男生 提交于 2020-03-05 03:19:52
问题 I have created a script using Python2.7 and compiled it using pyinstaller into an exe of the same name, in this case "GeneralStats.py" turns into "GeneralStats.exe" using --onefile and -w arguments. When called with C# I use: var pythonDirectory = (Directory.GetCurrentDirectory()); var filePathExe1 = Path.Combine(pythonDirectory + "\\Python\\GeneralStats.exe"); Process.Start(filePathExe1); When called outside of C#, so in my local files I can run the .exe and the result is a text file with

python executable

血红的双手。 提交于 2020-02-05 01:49:26
问题 is it possible to create python executable targeted for linux, from mac os x? PyInstaller seems to be at an early stage, and I don't know much else. Thanks 回答1: There is tool that can be run on single OS and make you executables for different OSes. You will need to do the compilation for every OS on a (virtual)machine that have it installed. Fox OS X you can check py2app in http://undefined.org/python/ 回答2: Do you really need a standalone executable? For most Linux distributions, the easier

python executable

Deadly 提交于 2020-02-05 01:49:13
问题 is it possible to create python executable targeted for linux, from mac os x? PyInstaller seems to be at an early stage, and I don't know much else. Thanks 回答1: There is tool that can be run on single OS and make you executables for different OSes. You will need to do the compilation for every OS on a (virtual)machine that have it installed. Fox OS X you can check py2app in http://undefined.org/python/ 回答2: Do you really need a standalone executable? For most Linux distributions, the easier

Is it possible to generate an executable (.exe) in a jupyter-notebook?

风格不统一 提交于 2020-02-03 01:55:30
问题 I wrote a code in python using jupyter notebook and i want to generate an executable of the program. 回答1: You can use this code I've written to convert large numbers of .ipynb files into .py files. srcFolder = r'input_folderpath_here' desFolder = r'output_folderpath_here' import os import nbformat from nbconvert import PythonExporter def convertNotebook(notebookPath, modulePath): with open(notebookPath) as fh: nb = nbformat.reads(fh.read(), nbformat.NO_CONVERT) exporter = PythonExporter()

How to Protect an Exe File from Decompilation

谁说胖子不能爱 提交于 2020-01-31 03:50:06
问题 What are the methods for protecting an Exe file from Reverse Engineering.Many Packers are available to pack an exe file.Such an approach is mentioned in http://c-madeeasy.blogspot.com/2011/07/protecting-your-c-programexe-files-from.html Is this method efficient? 回答1: The only good way to prevent a program from being reverse-engineered ("understood") is to revise its structure to essentially force the opponent into understanding Turing Machines. Essentially what you do is: take some problem

From DOS to Windows 10 assembly [duplicate]

a 夏天 提交于 2020-01-30 11:22:27
问题 This question already has answers here : Converting 16-bit DOS .com assembly for use on 64-bit (1 answer) 16-bit Assembly on 64-bit Windows? (3 answers) How to write hello world in assembler under Windows? (8 answers) Closed 2 years ago . This code will print "Hello, world!" in DOS as a .COM executable: org 100h mov dx,msg mov ah,9 int 21h mov ah,4Ch int 21h msg db 'Hello, world!',0Dh,0Ah,'$' However it will not run on Windows 10 64-bit and all trivial examples of a Helloworld program for x86

How do I make my Setup project produce an executable?

限于喜欢 提交于 2020-01-25 06:47:09
问题 I've built a small desktop application with which I am trying to use a Setup project to allow other users to install it. But whenever I run this installer, it does not produce an executable file. This is my first time making a setup project. My solution contains two projects. One is the setup project which installs the primary output from the other project. The other project is a WPF App that consists of two xaml files, a xaml.cs file for each, an App.config file, and an icon. It also has a

How to get output of a Lisp program into Python?

五迷三道 提交于 2020-01-24 17:51:07
问题 I've got a very large Lisp project whose output I'd like to programmatically pipe to a Python program, i.e. use Python to call the Lisp program on some input and get the output back into Python. The project only compiles in Clozure Common Lisp (ccl64) and I did try to find a way to turn it into an executable (I'm using Mac OS X), but that ran into a lot of dead ends (I am not a Lisp programmer). This documentation for Clozure Common Lisp should provide the solution to the above, but I was not

Write an executable .sh file with Java for OSX

旧街凉风 提交于 2020-01-21 10:58:08
问题 So I am trying to write an .sh file that will be executable, this is how I'm currently writing it: Writer output = null; try { output = new BufferedWriter(new FileWriter(file2)); output.write(shellScriptContent); output.close(); } catch (IOException ex) { Logger.getLogger(PunchGUI.class.getName()).log(Level.SEVERE, null, ex); } So that writes the file just fine, but it is not executable. Is there a way to change the executable status when I write it? Edit: To further clarify, I am trying to