What's new

Help Run bat file using incoming webhook massage

Jenman

Forum Veteran
Elite
Joined
Feb 21, 2017
Posts
1,111
Reaction
2,593
Points
582
Hellow po Pa help lang po sana if papano e run ang .bat/.vbs file gamit ang incoming webhook massage
sana po may makatulong,

posibli kaya un mga boss, or papano po e run ang bat or vbs file gamit ang incoming webhook massage


ito po ang index.php ko
[CODE title="php"]

<?php
$entity = file_get_contents('php://input');
$debugtxt = fopen("debug.txt", "w");
fwrite($debugtxt, $entity);
fclose($debugtxt);

if($entity =="BTCUSDT sell"){
//block of code thats tells yours echange to sell
}


?>
[/CODE]

ang tanong ko po if may dumating na massage sa debug.txt papano nya auto run ang file or bat/vbs file

maraming salamat sa mga sasagot
 
Last edited:
This would require elevated privilege just to run bat file.. the most logical thing to do is create a logs repository where all your actions will be stored create a pusher/worker to check it everytime it updates.

Far more reality is use Firebase Database by google they have free live database feature that can help you solve that and monitored all data passing through it.

1gb of data is free can be used to create a simple website ang implements stuffs.
thing is they don't use sql query they use json/arrays for data.
 
Capture.JPG



sir Arjien gamit ko po localhost ngaun po, kapag may na receive po na update or message sa log.txt nais ko sana i run ung .bat file, Hall: kapag naka receive ng update si log.txt, execute datap ang test.bat, posibli po ba un maraming salamat sir​

 

Attachments

Yes, you can run bat file in PHP. With little research I see some results.
The point is how fast do you think your logs are being monitored? will any logs execute/trigger bat file?
Thing is you need to convert your data to arrays & store them in a .json file to count all values from this file.
by doing a count check you can monitor your logs faster.

You need a PHP program to run bat file.
Worker to write the logs.
Worker to monitor logs in logs.txt/or .json file.
 
Back
Top