Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/14.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows 批次+;JScript to.exe_Windows_Batch File_Jscript_Jscript.net - Fatal编程技术网

Windows 批次+;JScript to.exe

Windows 批次+;JScript to.exe,windows,batch-file,jscript,jscript.net,Windows,Batch File,Jscript,Jscript.net,我有一个批处理文件,其中包含一些JScript,但我想将其转换为.exe,以便其他人看不到该脚本(加密) 我该怎么做? 我尝试使用Bat-to-Exe,但由于使用了JScript,因此无法工作 代码基本上是启动一个站点并输入关键输入,而.exe则设法启动该站点,但仅此而已 脚本: @如果(@code节==@Batch)@那么 @回音 标题顶部顶部顶部 颜色0c 如果“%inputParty%”=0( 设置标题=%site%-Bean-无党派 ) 设置/p站点=站点: set/p Clas=用户名

我有一个批处理文件,其中包含一些
JScript
,但我想将其转换为
.exe
,以便其他人看不到该脚本(加密)

我该怎么做?

我尝试使用Bat-to-Exe,但由于使用了
JScript
,因此无法工作

代码基本上是启动一个站点并输入关键输入,而.exe则设法启动该站点,但仅此而已

脚本:
@如果(@code节==@Batch)@那么
@回音
标题顶部顶部顶部
颜色0c
如果“%inputParty%”=0(
设置标题=%site%-Bean-无党派
)
设置/p站点=站点:
set/p Clas=用户名或电子邮件:
set/p Party=参与方:
设置/p车辆=车辆:
设置/p捕获=捕获:
设置inputsite=站点:%Site%
设置inputClas=Clas:未知
设置inputParty=参与方:%Party%
设置输入车=车:%Cars%
设置inputcapture=捕获:%Capture%
set inputide=[hide]*Bean*[/hide]
如果“%Clas%”==“用户名”(
设置inputClas=Clas:Username:Password
)
如果“%Clas%”==“电子邮件”(
设置inputClas=Clas:Email:Password
)
如果“%Clas%”==“用户名”(
设置inputClas=Clas:Username:Password
)
如果“%Clas%”==“电子邮件”(
设置inputClas=Clas:Email:Password
)
设置标题=%site%%Bean
如果“%Party%”=0(
设置标题=%site%-Bean-无党派
)
set SendKeys=CScript//nologo//E:JScript“%~F0”
开始https://Cear.io/xxxxx.php?fid=30
超时/t5
::访问标题输入框
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
%SendKeys%“{TAB}”
::输入标题
%SendKeys%%title%“
::将输入重定向到描述
%SendKeys%“{TAB}”
::输入说明
%SendKeys%%%inputsite%”
%SendKeys%“{ENTER}”
%SendKeys%%inputClas%
%SendKeys%“{ENTER}”
%SendKeys%%inputParty%
%SendKeys%“{ENTER}”
%SendKeys%%inputCars%
%SendKeys%“{ENTER}”
%SendKeys%%inputcapture%
%SendKeys%“{ENTER}”
%SendKeys%“{ENTER}”
%SendKeys%%InputIDE%
如果“%Party%”==“0”(转到前缀)
否则(
转到终点
)
:前缀
::输入前缀
设定x=20
对于(1,1,%x%)do中的/L%%A(
%SendKeys%“{TAB}”
)
%SendKeys%“{DOWN}”
:结束
后藤:EOF
@结束
//JScript部分
var WshShell=WScript.CreateObject(“WScript.Shell”);
SendKeys(WScript.Arguments(0));
输出:

混合JSBatch
文件基本上是一种“黑客”行为,如果编译的话,不会像预期的那样工作
尝试从中使用“

与其使用混合JSBatch,不如使用程序的“扩展命令”来输入键盘键

示例脚本 您的脚本(已修改)
尽管将.bat转换为.exe在所有情况下都是一个坏主意,但此方法应该可以解决您的问题:

@echo off

title Top Top
color 0c

if "%inputParty%" == "0" (
   set title= %site% - Bean - Partyless
)


set /p site= Site: 
set /p Clas= Username or Email: 
set /p Party= Party: 
set /p Cars= Cars: 
set /p capture= Capture: 

set inputsite= Site: %site%
set inputClas= Clas: UNKNOWN
set inputParty= Party: %Party%
set inputCars= Cars: %Cars%
set inputcapture= Capture: %capture%
set inputhide= [hide] *Bean* [/hide] 


if /I "%Clas%" == "Username" (
   set inputClas= Clas: Username:Password
)

if /I "%Clas%" == "Email" (
   set inputClas= Clas: Email:Password
)


set title= %site% - Bean
if "%Party%" == "0" (
   set title= %site% - Bean - Partyless
)


rem // JScript section

echo var WshShell = WScript.CreateObject("WScript.Shell"); > SendKeys.js
echo WshShell.SendKeys(WScript.Arguments(0)); >> SendKeys.js

set SendKeys=CScript //nologo SendKeys.js
START https://Cear.io/xxxxx.php?fid=30
timeout /t 5

:: ACCESS TITLE INPUT BOX
for /L %%i in (1,1,14) do %SendKeys% "{TAB}"

:: INPUT TITLE
%SendKeys% "%title%"

:: REDIRECT INPUT TO DESCRIPTION
%SendKeys% "{TAB}"

:: INPUT DESCRIPTION
%SendKeys% "%inputsite%{ENTER}"
%SendKeys% "%inputClas%{ENTER}"
%SendKeys% "%inputParty%{ENTER}"
%SendKeys% "%inputCars%{ENTER}"
%SendKeys% "%inputcapture%{ENTER}{ENTER}"
%SendKeys% "%inputhide%"

if "%Party%" neq "0" goto end

:: INPUT PREFIX
for /L %%A in (1,1,20) do %SendKeys% "{TAB}"
%SendKeys% "{DOWN}"

:end 
del SendKeys.js

goto :EOF

向我们展示代码…代码和文本输出应该是,而不是在图像中,也不是在外部链接中。你意识到你没有加密任何东西。你所做的一切都是模糊的,或者我喜欢称之为通过模糊来保证安全。Bat to exe程序只创建一个自解压exe。启动exe时,它将脚本解压缩到临时目录,然后执行脚本。任何有半个大脑的人都会意识到,他们第一次运行所谓的加密exe时。感谢您的回复,我尝试了您发送给我的内容,但我收到了以下错误:“/sendkey”未被识别为内部或外部命令,可操作的程序或批处理文件。@Hubgum您必须先使用Bat-to-Exe转换器将其转换为Exe确定,所以我刚尝试将其转换为.Exe,它启动站点,但不输入任何键,然后.Exe关闭。
@echo off


title Top Top
color 0c

if "%inputParty%" == "0" (
  set title= %site% - Bean - Partyless
)


set /p site= Site: 
set /p Clas= Username or Email: 
set /p Party= Party: 
set /p Cars= Cars: 
set /p capture= Capture: 

set inputsite= Site: %site%
set inputClas= Clas: UNKNOWN
set inputParty= Party: %Party%
set inputCars= Cars: %Cars%
set inputcapture= Capture: %capture%
set inputhide= [hide] *Bean* [/hide] 


if "%Clas%" == "Username" (
  set inputClas= Clas: Username:Password
)

if "%Clas%" == "Email" (
  set inputClas= Clas: Email:Password
)

if "%Clas%" == "username" (
  set inputClas= Clas: Username:Password
)

if "%Clas%" == "email" (
  set inputClas= Clas: Email:Password
)



set title= %site% - Bean
if "%Party%" == "0" (
  set title= %site% - Bean - Partyless
)

START https://Cear.io/xxxxx.php?fid=30
timeout /t 5

:: ACCESS TITLE INPUT BOX
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}
%extd% /sendkey {TAB}

:: INPUT TITLE
%extd% /sendkeys "%title%"

:: REDIRECT INPUT TO DESCRIPTION
%extd% /sendkey {TAB}


:: INPUT DESCRIPTION
%extd% /sendkeys "%inputsite%"
%extd% /sendkey {ENTER}
%extd% /sendkeys "%inputClas%"
%extd% /sendkey {ENTER}
%extd% /sendkeys "%inputParty%"
%extd% /sendkey {ENTER}
%extd% /sendkeys "%inputCars%"
%extd% /sendkey {ENTER}
%extd% /sendkeys "%inputcapture%"
%extd% /sendkey {ENTER}
%extd% /sendkey {ENTER}
%extd% /sendkeys "%inputhide%"

if "%Party%"=="0" (goto prefix)
ELSE (
goto end
)


:prefix 
:: INPUT PREFIX
set x= 20
for /L %%A in (1,1,%x%) do (
%extd% /sendkey {TAB}
)
%extd% /sendkey {DOWN}

:end 
goto :EOF
@echo off

title Top Top
color 0c

if "%inputParty%" == "0" (
   set title= %site% - Bean - Partyless
)


set /p site= Site: 
set /p Clas= Username or Email: 
set /p Party= Party: 
set /p Cars= Cars: 
set /p capture= Capture: 

set inputsite= Site: %site%
set inputClas= Clas: UNKNOWN
set inputParty= Party: %Party%
set inputCars= Cars: %Cars%
set inputcapture= Capture: %capture%
set inputhide= [hide] *Bean* [/hide] 


if /I "%Clas%" == "Username" (
   set inputClas= Clas: Username:Password
)

if /I "%Clas%" == "Email" (
   set inputClas= Clas: Email:Password
)


set title= %site% - Bean
if "%Party%" == "0" (
   set title= %site% - Bean - Partyless
)


rem // JScript section

echo var WshShell = WScript.CreateObject("WScript.Shell"); > SendKeys.js
echo WshShell.SendKeys(WScript.Arguments(0)); >> SendKeys.js

set SendKeys=CScript //nologo SendKeys.js
START https://Cear.io/xxxxx.php?fid=30
timeout /t 5

:: ACCESS TITLE INPUT BOX
for /L %%i in (1,1,14) do %SendKeys% "{TAB}"

:: INPUT TITLE
%SendKeys% "%title%"

:: REDIRECT INPUT TO DESCRIPTION
%SendKeys% "{TAB}"

:: INPUT DESCRIPTION
%SendKeys% "%inputsite%{ENTER}"
%SendKeys% "%inputClas%{ENTER}"
%SendKeys% "%inputParty%{ENTER}"
%SendKeys% "%inputCars%{ENTER}"
%SendKeys% "%inputcapture%{ENTER}{ENTER}"
%SendKeys% "%inputhide%"

if "%Party%" neq "0" goto end

:: INPUT PREFIX
for /L %%A in (1,1,20) do %SendKeys% "{TAB}"
%SendKeys% "{DOWN}"

:end 
del SendKeys.js

goto :EOF