CN103777855B - The method and apparatus for intercepting mobile terminal screen - Google Patents

The method and apparatus for intercepting mobile terminal screen Download PDF

Info

Publication number
CN103777855B
CN103777855B CN201210407626.5A CN201210407626A CN103777855B CN 103777855 B CN103777855 B CN 103777855B CN 201210407626 A CN201210407626 A CN 201210407626A CN 103777855 B CN103777855 B CN 103777855B
Authority
CN
China
Prior art keywords
terminal device
mobile terminal
interception
picture
script file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210407626.5A
Other languages
Chinese (zh)
Other versions
CN103777855A (en
Inventor
杜磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210407626.5A priority Critical patent/CN103777855B/en
Publication of CN103777855A publication Critical patent/CN103777855A/en
Application granted granted Critical
Publication of CN103777855B publication Critical patent/CN103777855B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of method and apparatus of interception mobile terminal screen.The method includes:Pass through the interception instruction calls script file triggered in terminal device;Corresponding picture is obtained by the page where running the mobile terminal that the script file capture is connected with the terminal device;The picture for capturing and obtaining is preserved in the terminal device.The system comprises:Calling module, for the interception instruction calls script file by being triggered in terminal device;Trapping module, for obtaining corresponding picture by the page where running the mobile terminal that the script file capture is connected with the terminal device;Memory module, the picture obtained for preserving the capture in the terminal device.Intercept operation can be simplified using the present invention.

Description

The method and apparatus for intercepting mobile terminal screen
Technical field
The present invention relates to computer technologies, more particularly to a kind of method and apparatus of interception mobile terminal screen.
Background technology
Picture intercept operation usually is carried out to interface where mobile terminal during the use of various mobile terminals, with interception The corresponding picture in interface where obtaining mobile terminal.In mobile terminal, traditional intercept operation can be by being installed on computer Screenshotss software and screenshotss software both modes being installed on mobile terminal are realized.
For example, mobile terminal can be connected with the computer of screenshotss software is mounted with and open the screenshotss software in computer, Changing interface operation is carried out to mobile phone, to be switched to the page for needing to carry out screenshotss, refreshes screenshotss circle of screenshotss software in computer Face carries out screenshotss operation to obtain corresponding picture.But it must be in the screenshotss in refreshing computer when the page is switched The picture corresponding to the page after being switched can be operated after interface by screenshotss, operation is relatively complicated.
In addition, also can directly install screenshotss software in the terminal and open, switches mobile terminal into and need to carry out The page of screenshotss, and then picture interception is carried out to the page by the screenshotss operation in screenshotss software.It is installed by mobile terminal Screenshotss software carry out screenshotss before, mobile terminal must obtain Root authority, i.e., the super pipe in mobile terminal operating system Reason person's user account, this account possess the absolute control of whole operation system, and still, mobile terminal obtains the mistake of Root authority Cheng Feichang is cumbersome, to also lead to be difficult to the screenshotss software directly installed using mobile terminal realize picture intercept.
Invention content
Based on this, it is necessary to which, for the very cumbersome problem of intercept operation is realized in mobile terminal, providing one kind being capable of letter Change the method for the interception mobile terminal screen of intercept operation.
In addition, there is a need to the device for providing a kind of interception mobile terminal screen that can simplify intercept operation.
A method of interception mobile terminal screen includes the following steps:
Pass through the interception instruction calls script file triggered in terminal device;
It is obtained pair by the page where running the mobile terminal that script file capture is connected with the terminal device The picture answered;
The picture for capturing and obtaining is preserved in the terminal device.
A kind of device of interception mobile terminal screen, which is characterized in that including:
Calling module, for the interception instruction calls script file by being triggered in terminal device;
Trapping module, the mobile terminal place for being connected with the terminal device by running the script file capture The page obtain corresponding picture;
Memory module, the picture obtained for preserving the capture in the terminal device.
The method and apparatus of above-mentioned interception mobile terminal screen realize script by the interception instruction triggered in terminal device The calling of file and operation, so page under the action of script file where pair mobile terminal being connected with terminal device into Row capture is stored in obtaining corresponding picture in terminal device, is taken compared with process with traditional picture load, user only needs The picture that interception instruction can be realized in terminal device is triggered in terminal device to intercept, and enormously simplify intercept operation, and And since the interception of mobile terminal screen is got under the action of script file by calling script file to realize Root authority, into the operation for obtaining Root authority without being additionally carried out, to realize mobile terminal screen intercept operation Simplify.
Description of the drawings
Fig. 1 is the method flow diagram that mobile terminal screen is intercepted in one embodiment;
Fig. 2 is the structural schematic diagram of the device of interception mobile terminal screen in one embodiment;
Fig. 3 is the structural schematic diagram of the device of interception mobile terminal screen in another embodiment;
Fig. 4 is the structural schematic diagram of the device of interception mobile terminal screen in another embodiment.
Specific implementation mode
As shown in Figure 1, in one embodiment, a method of interception mobile terminal screen includes the following steps:
Step S110 passes through the interception instruction calls script file triggered in terminal device.
In the present embodiment, terminal device is connected with the mobile terminal for carrying out picture interception to the page is needed, and passes through Terminal device can input various operations to the mobile terminal of connection.For example, terminal device can be computer etc., mobile terminal can be with It is mobile phone.Interception instruction is generated by the operation in terminal device, and then calls script file, which is used for moving Dynamic terminal carries out the interception of the page.
In a preferred embodiment, script file is by python(It sends gloomy)What language was constituted, pass through this one side of python It obtains to object, literal translation formula computer language, using python language obtained script file is easy to maintain and extension, makes Must apply the interception mobile terminal screen of the script file method it is more convenient in use safeguarded, and apply The method of above-mentioned interception mobile terminal screen can be extended easily, can be realized in terminal device to multiple mobile terminals The page at place is intercepted, in addition, under the script file effect constituted with python language, in the process of running can The Root authority that mobile terminal is acquired by corresponding order line, into without user again be acquisition for mobile terminal Root Permission and carry out additional operation.
In another embodiment, further include before above-mentioned steps S110:It obtains in terminal device and runs executable file Operation, and according to the operation of acquisition generate interception instruction.
In the present embodiment, executable file includes the call instruction of script file, will be touched by the operation of executable file Send out the operation of the series of orders in executable file.Executable file enters as the method for above-mentioned interception mobile terminal screen Mouthful so that user only needs directly to run by opening operations such as icon double-clicks to executable file so that easy to operate Fast, the time spent by user's operation is greatly saved.The opening operation for obtaining executable file in terminal device, by obtaining The opening operation operation executable file taken, and then the call instruction for running script file in executable file generates interception and refers to It enables.
In a preferred embodiment, executable file is bat files, and bat files are Dos(Disk Operating System, disc operating system)Under autoexec.
Step S130, the page where the mobile terminal being connected with terminal device by Run Script document capture obtain pair The picture answered.
In the present embodiment, the script file for calling operation after by interception instruction calls script file, in turn So that terminal device carries out the page capture under the action of script file to the mobile terminal of connection, mobile terminal place is obtained The corresponding picture of the page.
In another embodiment, further include before above-mentioned steps S130:It is obtained by the order in Run Script file Obtain the Root authority of mobile terminal.
In the present embodiment, mobile terminal is got by the operation of certain order line during Run Script file In Root authority, i.e. super keepe permission, so that the capture of the page can be smoothed out in terminal device.
The detailed process of above-mentioned steps S130 is:It is connected with terminal device by script file capture under Root authority The page where mobile terminal obtains corresponding picture.
The capture of the page where can successfully realizing mobile terminal in the present embodiment, under Root authority, due to this acquisition The process of Root authority need not carry out additional operation, significantly simplify the operation that page interception is carried out in mobile terminal.
In another embodiment, further include after above-mentioned steps S130:In the picture that terminal device display capture obtains.
In the present embodiment, the picture that capture obtains intuitively is shown in terminal device, so that user checks and observes.
Step S150 preserves the picture that capture obtains in terminal device.
In the present embodiment, the picture that capture obtains is preserved into terminal device, is captured in order to which user checks again The picture arrived.
In another embodiment, further include before above-mentioned steps S150:Obtain the mobile terminal being connected with terminal device Corresponding device identification.
In the present embodiment, device identification be mobile terminal it is intrinsic, each mobile terminal has unique device identification, Therefore, multiple mobile terminals can be distinguished by device identification.
The detailed process of above-mentioned steps S150 is:The picture that capture obtains is preserved according to preset path, and according to corresponding Device identification is named.
In the present embodiment, the storing path of picture is pre-set, the picture that capture obtains is carried out according to preset path Storage, and the picture of storage will be named according to corresponding device identification.
Further, naming rule can be preset, directly phase is generated according to naming rule when being stored to picture The picture name answered, still, since terminal device usually can carry out page interception to multiple mobile terminals, in order to Distinguish the obtained picture of interception, according to the obtained picture name of naming rule further comprise picture from mobile terminal pair The device identification answered, for example, naming rule has recorded the information such as picture interception date, device identification.
The screenshotss interface in terminal device need not be refreshed in the method for above-mentioned interception mobile terminal screen The page changed in mobile terminal is captured, and then obtains the picture corresponding to the page changed, it is real The real-time interception of the mobile terminal page is showed.
As shown in Fig. 2, in one embodiment, a kind of device of interception mobile terminal screen, including calling module 110, Trapping module 130 and memory module 150.
Calling module 110, for the interception instruction calls script file by being triggered in terminal device.
In the present embodiment, terminal device is connected with the mobile terminal for carrying out picture interception to the page is needed, and passes through Terminal device can input various operations to the mobile terminal of connection.For example, terminal device can be computer etc., mobile terminal can be with It is mobile phone.Calling module 110 generates interception instruction by the operation in terminal device, and then calls script file, the script File is used to carry out mobile terminal the interception of the page, in addition, under the script file effect constituted with python language, is transporting The Root authority that mobile terminal can be acquired in capable process by corresponding order line, into without user again be move Dynamic terminal obtains Root authority and carries out additional operation.
In a preferred embodiment, script file is made of python language, by python this object-oriented, Literal translation formula computer language obtains, using the obtained script file of python language it is easy to maintain and extension so that application The device of the interception mobile terminal screen of the script file is more convenient in use to be safeguarded, and applies above-mentioned section It takes the device of mobile terminal screen that can be extended easily, can realize in terminal device to where multiple mobile terminals The page is intercepted.
As shown in figure 3, in another embodiment, the device of above-mentioned interception mobile terminal screen further includes that operation obtains mould Block 210.
Acquisition module 210 is operated, for obtaining the operation for running executable file in terminal device, and according to the behaviour of acquisition Make to generate interception instruction.
In the present embodiment, executable file includes the call instruction of script file, and operation acquisition module 210 passes through executable The operation of file will trigger the operation of the series of orders in executable file.Executable file is as above-mentioned interception mobile terminal The entrance of the device of screen makes user only need directly to run by opening operations such as double-clicks so that easy to operate fast The time spent by user's operation is greatly saved in victory.Executable file opens in the operation acquisition terminal device of acquisition module 210 Operation is opened, executable file is run by the opening operation of acquisition, and then runs the calling life of script file in executable file It enables and generates interception instruction.
In a preferred embodiment, executable file is bat files, and bat files are Dos(Disk Operating System, disc operating system)Under autoexec.
Trapping module 130, the page where mobile terminal for being connected with terminal device by Run Script document capture Face obtains corresponding picture.
In the present embodiment, in the present embodiment, by intercepting the foot for calling operation after instruction calls script file This document is somebody's turn to do so that terminal device carries out the page capture under the action of script file to the mobile terminal of connection The corresponding picture of the page where mobile terminal.By intercepting the script for calling operation after instruction calls script file File obtains the shifting so that terminal device carries out the page capture under the action of script file to the mobile terminal of connection The corresponding picture of the page where dynamic terminal.
In another embodiment, the device of above-mentioned interception mobile terminal screen further includes authority acquiring module, the permission Acquisition module is used to acquire the Root authority of mobile terminal by the order in Run Script file.
In the present embodiment, authority acquiring module is obtained during Run Script file by the operation of certain order line The Root authority in mobile terminal, i.e. super keepe permission are got, so that the capture of the page can be suitable in terminal device Profit carries out.
Above-mentioned trapping module 130 is additionally operable to capture the movement being connected with terminal device by script file under Root authority The page where terminal obtains corresponding picture.
The capture of the page where can successfully realizing mobile terminal in the present embodiment, under Root authority, due to this acquisition The process of Root authority need not carry out additional operation, significantly simplify the operation that page interception is carried out in mobile terminal.
As shown in figure 4, in another embodiment, the device of above-mentioned interception mobile terminal screen further includes display module 230。
Display module 230, the picture for being obtained in terminal device display capture.
In the present embodiment, display module 230 intuitively shows the picture that capture obtains in terminal device, so that user looks into It sees and observes.
Memory module 150, the picture obtained for preserving capture in terminal device.
In the present embodiment, memory module 150 preserves the picture that capture obtains into terminal device, again in order to user Check the picture that capture obtains.
In another embodiment, the device of above-mentioned interception mobile terminal screen further includes identifier acquisition module 250.
Identifier acquisition module 250 is used to obtain the device identification where the mobile terminal being connected with terminal device.
In the present embodiment, device identification be mobile terminal it is intrinsic, each mobile terminal has unique device identification, Therefore, multiple mobile terminals can be distinguished by device identification.
Above-mentioned memory module 150 is additionally operable to preserve the picture that capture obtains according to preset path, and according to corresponding equipment Mark is named.
In the present embodiment, the storing path of picture is pre-set, the picture that memory module 150 obtains capture is according to pre- If path is stored, and will be named to the picture of storage according to corresponding device identification.
Further, naming rule can be preset, memory module 150 is when storing picture directly according to name Rule generates corresponding picture name, still, since terminal device usually can carry out page interception to multiple mobile terminals, Therefore, in order to distinguish the obtained picture of interception, according to the obtained picture name of naming rule further comprise picture from The corresponding device identification of mobile terminal, for example, naming rule has recorded the information such as picture interception date, device identification.
The screenshotss interface in terminal device need not be refreshed in the device of above-mentioned interception mobile terminal screen The page changed in mobile terminal is captured, and then obtains the picture corresponding to the page changed, it is real The real-time interception of the mobile terminal page is showed.
The device of above-mentioned interception mobile terminal screen can be applied in the terminal devices such as computer.
The method and apparatus of above-mentioned interception mobile terminal screen realize script by the interception instruction triggered in terminal device The calling of file and operation, so page under the action of script file where pair mobile terminal being connected with terminal device into Row capture is stored in obtaining corresponding picture in terminal device, is taken compared with process with traditional picture load, user only needs The picture that interception instruction can be realized in terminal device is triggered in terminal device to intercept, and enormously simplify intercept operation, and And since the interception of mobile terminal screen is got under the action of script file by calling script file to realize Root authority, into the operation for obtaining Root authority without being additionally carried out, to realize mobile terminal screen intercept operation Simplify.
One of ordinary skill in the art will appreciate that realizing all or part of flow in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the program can be stored in a computer read/write memory medium In, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic Dish, CD, read-only memory(Read-Only Memory, ROM)Or random access memory(Random Access Memory, RAM)Deng.
Several embodiments of the invention above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously Cannot the limitation to the scope of the claims of the present invention therefore be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect range.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (8)

1. a kind of method of interception mobile terminal screen, includes the following steps:
Pass through the interception instruction calls script file triggered in terminal device;
The terminal device captures more than one mobile terminal being connected with the terminal device by running the script file The page at place obtains corresponding picture;
The picture for capturing and obtaining is preserved in the terminal device;
The terminal device passes through the page where running the mobile terminal that the script file capture is connected with the terminal device Face further includes before the step of obtaining corresponding image:
The terminal device acquires the Root of the mobile terminal by running corresponding order line in the script file Permission;
The terminal device passes through the page where running the mobile terminal that the script file capture is connected with the terminal device Face obtains the step of corresponding picture and is:
The terminal device captures the mobile terminal being connected with the terminal device under the Root authority by script file The page at place obtains corresponding picture;
It is described by further including before the step of the interception instruction calls script file that is triggered in terminal device:
The operation for running executable file in terminal device is obtained, and interception instruction is generated according to the operation of the acquisition;
The executable file includes the call instruction of the script file;
Entrance of the executable file as interception mobile terminal screen, is opened by the icon double-click to the executable file It opens operation and directly runs the executable file, and the call instruction for running script file described in the executable file generates The interception instruction.
2. the method for interception mobile terminal screen according to claim 1, which is characterized in that described in the terminal device Further include before the picture that the middle preservation capture obtains:
Obtain the device identification corresponding to the mobile terminal being connected with the terminal device.
3. the method for interception mobile terminal screen according to claim 2, which is characterized in that described in the terminal device It is middle preserve it is described capture obtain picture the step of be:
The picture for capturing and obtaining is preserved according to preset path, and is named according to the corresponding device identification.
4. the method for interception mobile terminal screen according to claim 1, which is characterized in that described by running the foot It is also wrapped after the step of page where the mobile terminal that this document capture is connected with the terminal device obtains corresponding picture It includes:
The picture for capturing and obtaining is shown in the terminal device.
5. a kind of device of interception mobile terminal screen, which is characterized in that including:
Calling module, for the interception instruction calls script file by being triggered in terminal device;
Authority acquiring module acquires the movement for the terminal device by running the order in the script file The Root authority of terminal;
Trapping module is captured and the terminal device phase under the Root authority by script file for the terminal device The page where mobile terminal even obtains corresponding picture;Memory module, for being caught described in the preservation in the terminal device The picture acquired;
Acquisition module is operated, for obtaining the operation for running executable file in terminal device, and according to the operation of the acquisition Generate interception instruction;
The executable file includes the call instruction of the script file.
6. the device of interception mobile terminal screen according to claim 5, which is characterized in that further include:
Identifier acquisition module, for obtaining the device identification corresponding to the mobile terminal being connected with the terminal device.
7. the device of interception mobile terminal screen according to claim 6, which is characterized in that the memory module is additionally operable to The picture for capturing and obtaining is preserved according to preset path, and is named according to the corresponding device identification.
8. the device of interception mobile terminal screen according to claim 5, which is characterized in that further include:
Display module, for showing the picture that the capture obtains in the terminal device.
CN201210407626.5A 2012-10-23 2012-10-23 The method and apparatus for intercepting mobile terminal screen Active CN103777855B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210407626.5A CN103777855B (en) 2012-10-23 2012-10-23 The method and apparatus for intercepting mobile terminal screen

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210407626.5A CN103777855B (en) 2012-10-23 2012-10-23 The method and apparatus for intercepting mobile terminal screen

Publications (2)

Publication Number Publication Date
CN103777855A CN103777855A (en) 2014-05-07
CN103777855B true CN103777855B (en) 2018-09-21

Family

ID=50570172

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210407626.5A Active CN103777855B (en) 2012-10-23 2012-10-23 The method and apparatus for intercepting mobile terminal screen

Country Status (1)

Country Link
CN (1) CN103777855B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125497B (en) * 2014-07-30 2018-03-06 北京金山安全软件有限公司 Webpage video recording method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079061A (en) * 2007-04-09 2007-11-28 腾讯科技(深圳)有限公司 Web page screen-cutting system and implementation method
CN101291488A (en) * 2008-03-24 2008-10-22 中兴通讯股份有限公司 Screen printing method on mobile terminal
CN102546797A (en) * 2011-12-31 2012-07-04 互动在线(北京)科技有限公司 Screen shooting method for mobile equipment based on browser end/server end structure

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101074624B1 (en) * 2008-11-03 2011-10-17 엔에이치엔비즈니스플랫폼 주식회사 Method and system for protecting abusinng based browser

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079061A (en) * 2007-04-09 2007-11-28 腾讯科技(深圳)有限公司 Web page screen-cutting system and implementation method
CN101291488A (en) * 2008-03-24 2008-10-22 中兴通讯股份有限公司 Screen printing method on mobile terminal
CN102546797A (en) * 2011-12-31 2012-07-04 互动在线(北京)科技有限公司 Screen shooting method for mobile equipment based on browser end/server end structure

Also Published As

Publication number Publication date
CN103777855A (en) 2014-05-07

Similar Documents

Publication Publication Date Title
CN105204969B (en) Abnormal log processing method and abnormal log processing unit
CN105488397B (en) A kind of ROP attack detection systems and method based on situation
CN102750101B (en) Trigger method and the device of the instruction that starts application
CN105940409A (en) Web service sandbox system
CN103514075B (en) The method and apparatus that monitoring api function is called in the terminal
CN106095318A (en) Application program open method and device
CN104239797B (en) Active defense method and device
CN109711148A (en) Hold-up interception method, device, computer equipment and the storage medium of application behavior
CN105740046A (en) Virtual machine process behavior monitoring method and system based on dynamic library
CN103678979A (en) Method and device for intelligently hiding privacy data
CN104506941B (en) The processing method and processing device of key-press event in intelligent television
CN103442361A (en) Method for detecting safety of mobile application, and mobile terminal
CN106790926A (en) A kind of contact management method and terminal
CN103619014A (en) Method and system preventing application data from leakage
CN105975344A (en) Control method and device preventing application from excessively using sensor
CN107111491A (en) For by the universal interaction of content capture to persistent storage
CN104636154B (en) Application program installation method and device
CN103870755A (en) Method and device for transferring files between multiple users of same electronic device
CN103391349A (en) Method of keeping secrets of terminal and terminal
CN106502495B (en) The method and apparatus of desktop are accessed under a kind of guest mode
CN103777855B (en) The method and apparatus for intercepting mobile terminal screen
CN106682493A (en) Method and device for preventing process from being maliciously ended and electronic equipment
CN107239236A (en) Method for writing data and device
CN109286718A (en) A kind of record screen method, apparatus and electronic equipment
US20140207833A1 (en) File opening method, apparatus, and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant