Skip to content

Commit 34bbc5b

Browse files
committed
print error message about limitation
1 parent 46d1616 commit 34bbc5b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

modules/exploits/windows/local/ntapphelpcachecontrol.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,13 @@ def check
131131
end
132132

133133
def exploit
134+
if session.platform !~ /^x86\//
135+
print_error("Sorry, this module currently only allows x86/win32 sessions.")
136+
print_error("You will have to get a x86/win32 session first, and then you can")
137+
print_error("select a x64 payload as this exploit's payload.")
138+
return
139+
end
140+
134141
print_status("Uploading the payload DLL")
135142
upload_payload
136143

0 commit comments

Comments
 (0)