Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

[readweb.bat] - rate & reply - view website sourcecode from command prompt

its pretty self-explanatory

syntax:
readweb /?
readweb h++p://website'com
readweb /install (adds it's self as a command prompt command for the logged on user)



tell me what u think and what u think about how it installs it self as a command prompt command, could it be done more efficiently some other way
it would be nice if someone would rate this too


im not allowed to post anything with website urls in it on here yet so in the code replace *http*:// and *https*:// with what theyre obviously supposed to be
Code
@set "self=%0"
goto :batch

NOTES
********************************************************************************​**************
must have the file extension "bat" not "cmd" for it's install as a CommandPrompt
command for the currently logged in user function to be able to work

this is because to compensate for the complications of the batch-file 0th parameter
being a different value depending on weather the batch-file is started using explorer
or command prompt i wrote the install macro to work with the way the value is when
this batch-file gets ran from command prompt which does not include the batch-file's
file-extension in it's name (or the folder-path either)(this is on windows 8.1 as of 3/30/2016)

storeing the 0th parameter's value into a variable in the first line of the batch file and useing
that var instead is a vista compatability thing that idk if its been patched or not yet
********************************************************************************​**************



:batch
@echo off
for /f "tokens=*" %%A in ('echo %self%') do set "commandname=%%~nA"

if "%1"=="/?" goto :help
if "%1"=="-?" goto :help
if "%1"=="" echo.type "%commandname% /?" for an explaination of how to use %commandname% & goto :end
if /I "%1"=="/install" goto :InstallAsCommandPromptCommand
if /I "%1"=="/add" goto :InstallAsCommandPromptCommand

set "targpage=%*"
if "%targpage:~0,7%"=="*http*://" goto :nxt
if "%targpage:~0,8%"=="*https*://" goto :nxt
set "targpage=*http*://%targpage%"

:nxt
set "HttpInteracter=%temp%\%random%.vbs"
echo.set readwebpage = wscript.getobject(wscript.arguments.item(0))>"%httpInteracter%"
echo.While readwebpage.readystate ^<^> "complete">>"%httpInteracter%"
echo.wscript.sleep "100">>"%httpInteracter%"
echo.wend>>"%httpInteracter%"
echo.wscript.echo readwebpage.documentelement.outerhtml>>"%httpInteracter%"
call cscript //nologo "%httpInteracter%" "%targpage%"
echo.>"%httpInteracter%"
move "%httpInteracter%" "%temp%\1.tmp" >nul
del /f /q "%temp%\1.tmp" >nul
goto :end

:InstallAsCommandPromptCommand
echo.
echo.installing %commandname% command-line command ...
set "AddedCommandsContainer=%userprofile%\AddedCommandLineCommands"
if not exist "%AddedCommandsContainer%" (
mkdir "%AddedCommandsContainer%"
attrib +h +s -r "%AddedCommandsContainer%"
reg add HKCU\Environment /v "PATH" /t "reg_sz" /d "%PATH%;%AddedCommandsContainer%" /f >nul
reg add HKCU\Environment /v "AddedCommandLineCommandsLocation" /t "reg_sz" /d "%AddedCommandsContainer%" /f >nul
)
copy /y "%commandname%.bat" "%AddedCommandsContainer%\%commandname%.bat" >nul
echo.
echo.
echo %commandname% has been added as a command-line command for the logged in user
echo.changes will take effect at next login
echo.
goto :end

:help
echo.
echo.
echo.--
echo.syntax: %commandname% *http*://website'com
echo.--
echo.
echo.discription: reads the source code of the targeted webpage.
echo.
echo.to add this command as a Command Prompt command for your user
echo.type: %commandname% /install
echo.
echo.
echo.NOTES:
echo.does support HTTPS protocol.
echo.
echo.as always with viewing the source code of a webpage
echo.you can only view client-side executed code ^(like html^)
echo.not server-side executed code ^(like php^)
echo.just like when you click "view page source code"
echo.in any web-browser
echo.
echo.many websites have blocked a method of checking the client-side
echo.executed code of their webpages that gets the exact text of the
echo.client-side executed code so this application uses a different
echo.method that can not be blocked but if the targeted webpage
echo.didn't add a closeing tag for certain HTML tags (such as ^</BODY^>
echo.and ^</HTML^>) into their client-side executed code this method
echo.of querying it adds those closing tags it self to the text it displays
echo.
echo.

:end
✌
(Apr 15, 2016 01:16 AM)________ Wrote:  ✌

just now i got a -9 reputation in the last few hours and idk what to rlly think about your repy with a peace sign, did u click something that gave me that? im still new to hackforums so i dont rlly know what that something would b. if u did why? am i breaking some rule?


(Apr 15, 2016 01:16 AM)________ Wrote:  ✌

if you gave me a negative rep point for thinking i was asking for rep when i typed "rate & reply" i mean rate as in rate the post not rate me if theres a different word i should use besides rate please tell me im still new to hackforums
(Apr 15, 2016 06:06 AM)ImDeepWithWindows Wrote:  just now i got a -9 reputation in the last few hours and idk what to rlly think about your repy with a peace sign, did u click something that gave me that? im still new to hackforums so i dont rlly know what that something would b. if u did why? am i breaking some rule?



if you gave me a negative rep point for thinking i was asking for rep when i typed "rate & reply" i mean rate as in rate the post not rate me if theres a different word i should use besides rate please tell me im still new to hackforums

Sorry, but I didn't give you negative reputations. I am also mew here, and see my situation. I have -20 reputations and 40% warning for nothing.
(Apr 15, 2016 07:27 PM)________ Wrote:  Sorry, but I didn't give you negative reputations. I am also mew here, and see my situation. I have -20 reputations and 40% warning for nothing.

You have 2 20% for bad posting etiquette. Learn to forum
(Apr 15, 2016 08:07 PM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  You have 2 20% for bad posting etiquette. Learn to forum

I am sorry! I am mew here! I will take some time to understand! Why do you give reputations without waiting for me to learn? 😭
(Apr 15, 2016 10:03 PM)________ Wrote:  I am sorry! I am mew here! I will take some time to understand! Why do you give reputations without waiting for me to learn? 😭

I can change it to a +3 just as easily as I gave you a -3. But you have to earn it like everyone else.
(Apr 15, 2016 11:21 PM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  I can change it to a +3 just as easily as I gave you a -3. But you have to earn it like everyone else.

You gave me -3 for potential harm. Do you really think it was my intention to give potential harm to fellow members?
(Apr 16, 2016 11:13 PM)________ Wrote:  You gave me -3 for potential harm. Do you really think it was my intention to give potential harm to fellow members?

i agree youre not being harmful, idk why he'ld think that maybe taking about rep is "bad etiquette" in the rules or something and replying to me is getting other members to "endanger themselves by breaking rules and risk negative points"

i cant reply to pms cuz i dont have enough posts but i got yours about that other website, ill check it out

there are some shit talkers on here that i dont mind but alot more petty-violation reporters and rule-huggers on here than i expected that i do mind,
for a website thats called "hack forums" theres alot of fucking rule-huggers and petty-violation micro-managers. idk if theyre trying to get some automatic rep points for reporting someone or what

youve helped me out with some info about this place and ill give u positive rateing for that if i can, hopefull that should help balance out youre negative rep points over some bs
If you both want to PM me and we can talk about it there that is fine. No need to bloat this thread to the top of the forum.
(Apr 17, 2016 11:10 PM)ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™ Wrote:  If you both want to PM me and we can talk about it there that is fine. No need to bloat this thread to the top of the forum.
i would if i could, i need 50 posts to pm
I have same problem 😖


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Shell] by Robert RougeSep 24, 2026 10:03 AM 1 296 Sep 24, 2026 10:03 AM
Last Post: Anonynuk
[Shell] by Sir AlexMay 12, 2022 04:03 AM 8 417 May 12, 2022 04:03 AM
Last Post: Sajuuk
[Shell] by ImDeepWithWindowsJul 4, 2020 06:19 PM 0 167 Jul 4, 2020 06:19 PM
Last Post: ImDeepWithWindows