有沒有辦法將兩個exe文件合併爲一個,以編程方式,以便運行它將同時執行兩個較舊的exe文件。我在谷歌上發現了一些關於注入代碼或dll文件的東西,但是有可能兩個合併兩個exe文件或將exe注入到exe中?將兩個exe文件合併成一個編程
在此先感謝。
[編輯] 謝謝大家。只是對於那些說不可能的人,我不得不說我幾乎是按照某些人的建議去做的。它幾乎是這樣的(我不記得它是很久以前的全部):
[請注意:此算法與某些蠕蟲和病毒的算法非常相似。我不是黑客或病毒作家!並且這隻能用於實驗性或無害的原因 - 在代碼中犯錯可能會破壞目錄中的可執行文件。]
1- Exe檢查自身的大小以檢測是否有任何內容被附加到自身。若沒有,則:
1.1- The exe finds other executable files in its directory (lets call one of them as victim!)
1.2- it makes a copy of itself (lets call it newMe)
1.3- it copies the other executable found in the directory to the end of newMe.
1.4- it deletes the other executable file found and renames newMe to its victim's name.
2 - 如果該exe檢測到的東西已經被添加到它,然後:
2.1- Then it copies data from itself (from ORIGINAL_FILE_SIZE to the end of file) to a new file (lets call it newBorn.exe)
2.2- It runs itself's code and then executes the newBorn.
我說我幾乎做到了餘弦這樣的exe另追加exe自身。但是可以重複這個操作來將2個甚至3個或更多個可執行文件附加到一箇中並執行。你只需要知道書面程序的ORIGINAL_FILE_SIZE。
exefusion有木馬惡意軟件。 – BioDeveloper 2013-08-22 06:57:51