H
H
Huntgold2020-08-11 02:28:46
Programming
Huntgold, 2020-08-11 02:28:46

How to change the html code on the hosting with the help of software?

Let's imagine a situation. There is an .exe (it doesn't matter what language, similar frauds are everywhere, for example C ++), after running the .exe, the software opens the html page on my hosting and changes a certain string (for example HELLO WORLD123) to "51325HELLO WORLD". How to do it? I am not friends with FTP requests, I will be glad if you help me. More clear below.

We have:
index.html with code:

<div>HI DUDE</div>
<div>HUH BR</div>


Run the software (.exe). It replaces "HUH BR" with "NICHOSI".

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Developer, 2020-08-11
@samodum

replace

S
SOTVM, 2020-08-11
@sotvm

for this you don’t need an assembler or even C))) it’s
enough to find a div in which there is a line “bla-bla-bla” and replace it with “yaZhprogrammer ”
5f31dfb7f3ccf983445877.gif

X
xmoonlight, 2020-08-11
@xmoonlight

Create a RestfulAPI on hosting to issue commands for editing files.
And from the exe program, contact the hosting via POST / GET requests in json format and perform the necessary actions.

H
Huntgold, 2020-08-11
@Huntgold

In general, I sat all night and did it via FTP, the software connects to FTP, downloads the file, edits it and uploads it back with a replacement. Certainly not ideal, but it works.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question