r00t-3xp10it / FakeImageExploiter

Use a Fake image.jpg to exploit targets (hide known file extensions)
891 stars 341 forks source link

solve the problem about Resource hack #17

Closed OTGG closed 5 years ago

OTGG commented 5 years ago

Hellow, i find a problem . the installer of Resource Hacker is 32bit. but the code of path is 64bit. so, the program will not find the Resource Hacker. the installer determine the path , not the $ArCh. image

r00t-3xp10it commented 5 years ago

i have recibed bug reports about this for some time..

so after many talks i have decided to go with PgFi=Program Files because 32b or 64b RH installer seems to install allways under Program Files..

[ i have never seen the RH beeing installed under Program Files(x86) <- 64 bit folder ] does that have happen with you ?

r3x07 commented 5 years ago

i have the same problem

r00t-3xp10it commented 5 years ago
if [ "$ArCh" = "i686" ]; then
  dEd="x86"
  arch="wine"
  PgFi="Program Files"
  ComP="i586-mingw32msvc-gcc"
else
  dEd="x86"
  arch="wine"
  PgFi="Program Files"
  ComP="i586-mingw32msvc-gcc"
fi


hint: fakeimageexploiter tool works fine like the above videos comproves it ..

Before iam able to change anything in sourcecode, i first need to understand were the error resides on other systems, for that i need people to work together with me (testing sourcecode corrections, saying that the tool as errors does not help me in anything)

r3x07 commented 5 years ago

"E: unable to locate mingw32" And it loops the "FakeImageExploiter needs to restart to finish installs . ."

r00t-3xp10it commented 5 years ago

my bad ...i forgot to change the compiler arch .. pic ..

r3x07 commented 5 years ago

E: unable to locate package mingw32

r00t-3xp10it commented 5 years ago

did you installed mingw32 ?? sudo apt-get install mingw32 i586-mingw32msvc-gcc

send me screenshot of this command

r3x07 commented 5 years ago

no i will , btw thanks

r3x07 commented 5 years ago

root@fbi:~/FakeImageExploiter# sudo apt-get install mingw32 i586-mingw32msvc-gcc Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package mingw32 E: Unable to locate package i586-mingw32msvc-gcc

r3x07 commented 5 years ago

here ya go

r00t-3xp10it commented 5 years ago

aaaaa your distro repository does not contains mingw32 anymore ..

r3x07 commented 5 years ago

what to do :C i want to use your script

r00t-3xp10it commented 5 years ago

sudo dpkg --add-architecture i386 && apt-get update && apt-get -y dist-upgrade --allow-downgrades && apt-get install -y mingw32 i586-mingw32msvc-gcc

TheFatRat tool installs mingw32 this way: sudo apt-get remove --purge mingw -y && apt-get autoremove -y && apt-get install mingw --force-yes -y

if this commands dosent install mingw32 them you must add to your source.list the repository that allow you to install mingw32

Install mingw32 in parrot: https://community.parrotsec.org/t/mingw32-install/600

r3x07 commented 5 years ago

with my internet, that will be installed aprx in 2 hours

r00t-3xp10it commented 5 years ago

so..now it have found mingw32 in the repositorys rigth ??

r3x07 commented 5 years ago

root@fbi:~/FakeImageExploiter# sudo dpkg --add-architecture i386 && apt-get update && apt-get -y dist-upgrade --allow-downgrades && apt-get install -y mingw32 i586-mingw32msvc-gcc Hit:1 http://deb.i2p2.no unstable InRelease
Get:2 http://kali.download/kali kali-rolling InRelease [30.5 kB] Get:3 http://kali.download/kali kali-rolling/non-free Sources [135 kB] Get:4 http://kali.download/kali kali-rolling/main Sources [12.8 MB]
Get:4 http://kali.download/kali kali-rolling/main Sources [12.8 MB]
30% [4 Sources 8,437 kB/12.8 MB 66%] 9,962 B/s 1h 5min 48s

OTGG commented 5 years ago

the problem solve ?

r00t-3xp10it commented 5 years ago

i dont have one x64 bit Pc ... so.. i dont have any clue what errors occur in x64 bits.. for that i need people to report bugs for me to fix them..

latest fix to sourcecode thanks to @Louisees latest commit to sourcecode

download the tool again and try it now ..

r3x07 commented 5 years ago

rocessing triggers for libc-bin (2.28-2) ... Processing triggers for rygel (0.36.2-3) ... Processing triggers for systemd (240-5) ... Processing triggers for dbus (1.12.12-1) ... Reading package lists... Done Building dependency tree
Reading state information... Done E: Unable to locate package mingw32 E: Unable to locate package i586-mingw32msvc-gcc

aaaa help pls waited 2 days and still the same error

r3x07 commented 5 years ago

fixed error with mingw32 but not about resourcehacker

r00t-3xp10it commented 5 years ago

Exelent ..let me arrive home and we install rh ..

Na(o) Sex, 15/02/2019, 09:46, Tony Smith notifications@github.com escreveu:

fixed error with mingw32 but not about resourcehacker

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/r00t-3xp10it/FakeImageExploiter/issues/17#issuecomment-463973528, or mute the thread https://github.com/notifications/unsubscribe-auth/AWZuDAwoLV2mLkg9-iFIPwj_muddrFUpks5vNoIHgaJpZM4ZJccw .

r3x07 commented 5 years ago

thanks

r3x07 commented 5 years ago

btw my distro is kali rolling 2018.1

r3x07 commented 5 years ago

i finally found how to install it, changed the installation directory from 'Program Files (x86)' to 'Program Files', thanks anyways

r3x07 commented 5 years ago

i started reverse_tcp and opened my payload in my windows laptop, but nothing happens

LHOST=192.168.1.4 LPORT=4444 PAYLOAD=windows/meterpreter/reverse_tcp msf5 exploit(multi/handler) > exploit [x] started reverse tcp on 192.168.1.4:4444

Like nothing happens

r3x07 commented 5 years ago

thanks, i fixed both problems and i'll share your script with my friends :) :+1:

r00t-3xp10it commented 5 years ago

i finally found how to install it, changed the installation directory from 'Program Files (x86)' to 'Program Files' <-- were did you changed this ?? in FakeImageExploiter.sh or in Resource Hacker installer ???

r3x07 commented 5 years ago

in installation menu, neither of those files, go check your FakeImageExploiter.sh file its resource hacker file is in 'ProgramFiles', but when u install Resource Hacker the default installation file is 'Program Files (x86)'

r00t-3xp10it commented 5 years ago

i have allready written a warning in project main page instructing users to install RH under Program Files folder [ not under: Program Files (x86) ] thanks ..

r3x07 commented 5 years ago

Sorry

piyush19996 commented 4 years ago

why it showing me this error in my linux Screenshot 2020-06-17 09:27:57

piyush19996 commented 4 years ago

i am new to linux i dont know why but it showing me this error...someone plz help me in this Screenshot 2020-06-17 09:27:57

conratmixilson commented 3 years ago

piyush19996 --I solved this problem. Copy the Resource Hacker folder from Program Files to Program Files (x86)