Jump to content

How to eliminate a html string


Recommended Posts

Hello, I'm working on a project, however, I came across a small problemma do not know how I can do to remove a string autoit html in a web page (in my case shell.explorer). I just need to know how I could do. Thanks to all who respond to the topic, good evening :D .

(sorry for my bad english, but i have used google translate)

Link to comment
Share on other sites

Welcome, if you have the source i think you can treat it as a normal txt file, and work your way from there.

Can't help without more information, what page is it? do you really mean "remove", or do you mean retrieve? what have you tried so far?

Spoiler

Renamer - Rename files and folders, remove portions of text from the filename etc.

GPO Tool - Export/Import Group policy settings.

MirrorDir - Synchronize/Backup/Mirror Folders

BeatsPlayer - Music player.

Params Tool - Right click an exe to see it's parameters or execute them.

String Trigger - Triggers pasting text or applications or internet links on specific strings.

Inconspicuous - Hide files in plain sight, not fully encrypted.

Regedit Control - Registry browsing history, quickly jump into any saved key.

Time4Shutdown - Write the time for shutdown in minutes.

Power Profiles Tool - Set a profile as active, delete, duplicate, export and import.

Finished Task Shutdown - Shuts down pc when specified window/Wndl/process closes.

NetworkSpeedShutdown - Shuts down pc if download speed goes under "X" Kb/s.

IUIAutomation - Topic with framework and examples

Au3Record.exe

Link to comment
Share on other sites

Hello, I'm interested on how to remove a string html of a web page, I need to create a pograma that removes the survey that block web pages.
For now I tried _IEAction, but with no results (I'm not sure that's right)
Link to comment
Share on other sites

_IEbodyread, replace the code (stringreplace? stringregexpreplace?), and then _IEbodywrite might work

However if you're using a newer version of IE, you can hit F12, and a window will pop up.

click on the mouse pointer image at the top of this window, and then click on the survey part in IE - it should select it and show it in the other window.
Hit delete, and it will be removed.

Keep hitting delete until all the crap blocking the screen is gone. If you go to far, just refresh the page and try again.

But there's a problem, If you're trying to bypass the survey on a survey download site, this does not work - It uses some other mechanism like a cookie or something server side to determine if you did the survey bullshit or not. Even if you somehow remove the survey popup that blocks everything off, chances are the buttons behind it won't do anything or will lead you to some advertizing instead. I would never download something from one of those sites regardless.

0x616e2069646561206973206c696b652061206d616e20776974686f7574206120626f64792c20746f206669676874206f6e6520697320746f206e657665722077696e2e2e2e2e

Link to comment
Share on other sites

  • Moderators

Hi,

Two people have reported this thread as "bypassing security measures" in the past few minutes. I do not see it as that at all - the survey in the example page is not a "security measure" - it is an advertisement and an annoyance. ;)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

So the survey is the same, but that is not the correct page (the example link)?

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

That page has a "Cracked" commercial program for download...

Malwarebytes Anti-Malware Premium v2.0.2.1012/ Pro v1.75.0.1300 – Final – FULL • Incl. Serials-FFF/Keygen-FFF/Keygen-RED

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Link to comment
Share on other sites

Just asking since the link you gave us is to an illegal download......

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

A ME NOT WANT THE DOWNLOAD! THE SOFTWARE OR LESS BEHIND THE SURVEY! INFORMATIONAL PURPOSES ONLY AND PUT!

I want to know how can I do to eliminate the strings autoit html and stop! So that I can create a software that bypasses the survey as those.

Link to comment
Share on other sites

Calm down buddy, I'm trying to figure out what your trying to do between your broken English.

#include <IE.au3>
#include <INet.au3>
 

$HTML = _INetGetSource("www.google.com")

$HTML = StringRegExpReplace($HTML, "<img.*?>", "")
 

$oIE = _IECreate("www.google.com", 0,0,1)
_IEBodyWriteHTML($oIE,$HTML)

_IEAction($oIE, "visible")

There now change the url to the one you want, find the line that creates the survey and replace it with the call to StringRegExpReplace and then recreate it. This was found from this >link as the first link from a google search..

EDIT: YOU will have to know the line that creates the survey, then put that into the second parameter of StringRegExpReplace and you should be good..

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

@DSChaos no problem :thumbsup:  please let me know if you need more help :)

EDIT: When I did my google search I did "replace html autoit"

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

no problem ^_^

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

As an example for MikahS' solution and a test, just try this :

- get the source code from the page you mentioned in post #5

- create a local "test.html" file and put the code inside

- remove these 2 lines :

<script src="http://www.loxtk.com/gLoader.php?GID=1878&go=&sid=" type="text/javascript"></script>
<script type="text/javascript">if (!awm) { window.location = 'http://loxtk.com/help/removeAB.php'; }</script>

- run the html file

:)

Link to comment
Share on other sites

Thank you mikell, that is perfect way of testing.

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

MikahS,

The main concept is in your code

Maybe using a Shellexecute on the html can be lighter than running the _IE* funcs  ;)

A very raw illustration :

$txt = BinaryToString(InetRead("http://www.thecompletewebs.net/2014/06/malwarebytes-anti-malware-premium-v2-0-2-1012-pro-v1-75-0-1300-final-full/"))

$txt = StringRegExpReplace($txt, '(?s)<script.*?loxtk.*?/script>', "")
FileWrite("1.html", $txt)
ShellExecute("1.html")
Edited by mikell
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...