WinXP | Library for bypassing XPrivacy restrictions | Hacking library
kandi X-RAY | WinXP Summary
kandi X-RAY | WinXP Summary
this is a proof of concept that illustrates how to bypass [xprivacy] restrictions using jni. xprivacy is a third-party permission manager for android which is used to prevent semi-untrusted apps from gathering certain types of user data. a typical use case might involve allowing a social networking app to access the internet, but prohibiting it from scanning through call logs or activating the microphone or camera. what many xprivacy users do not realize is that the xprivacy protections are less strict than the permissions built into the standard android os. xprivacy, for the sake of compatibility with "skinned" android implementations that change and/or obfuscate the aosp internals, enforces its restrictions from inside the same process it is trying to block. therefore, it is often possible for an uncooperative app to bypass the xprivacy protections using native code, reflection, local reimplementation of the sdk apis, or other trickery. the android os, by contrast, enforces its permissions inside the service. os services run in a separate process under a different uid, so it is harder to trick them into doing something inappropriate. in this project, the jni code implementing the bypass lives in jni/facebook.cpp (aka: libfacebook.so). the basic idea here is that a large, complex app that makes heavy use of jni, such as
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of WinXP
WinXP Key Features
WinXP Examples and Code Snippets
Community Discussions
Trending Discussions on WinXP
QUESTION
I would like to compile a C++
program via Visual Studio command line tools. I would like to target the executable for 32 bit Windows XP
. Tried compiling it the usual way, using x86 Native Tools Command Prompt for VS 2019
, but it doesn't work on Windows XP
, though runs fine on my Windows 10
machine.
Steps I take:
- Open
x86 Native Tools Command Prompt for VS 2019
. cd
to the project directory. There I'll have 2 folderssources
andheaders
, which shall contain.cpp
and.h
files respectively.- Execute command
cl sources\*.cpp /EHsc /D_WIN32_WINNT=0x050103 /I headers /I /link /libpath \boost_1_77_0\bin\x86\lib\libboost_program_options-vc142-mt-s-x32-1_77.lib /out:exec_xp.exe
(the project uses theboost
library).
Tried this, but it doesn't work. /D \"_USING_V110_SDK71_\"
seems to do nothing, and the /SUBSYSTEM:WINDOWS,5.01
piece isn't recognized by the compiler.
I have learnt from this Microsoft page that we should install deprecated Toolset to compile for WinXP
. I went ahead to Visual Studio Installer
and installed the C++ Windows XP Support for VS 2017 (v141) tools [Deprecated]
, as said in the tutorial.
But what now? How can I use this Toolset? I can't find it anywhere on my computer, let alone use it! Visual Studio Installer
says it's located under C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools
, but it's too vague.
UPD:
Tried with msbuild /p:PlatformToolset=v141_xp
, getting this error:
ANSWER
Answered 2021-Aug-24 at 08:08I suggest you could try to set the PlatformToolset property:
msbuild myProject.vcxproj /p:PlatformToolset=…
For more details, I suggest you could refer to the Doc:MSBuild command-line reference
QUESTION
I have some legacy apps:
two .NET4.5 Windows apps and a PostgreSQL 9.2 database (currently running on WinXP 32bit virtual machine)
the first app saves some file into the database by this:
...ANSWER
Answered 2021-Apr-19 at 18:55Finally found the solution (thanks jdweng). Postgresql has two ways to export bytearray data. To enable the right one for me I executed the following command (on database server): ''' ALTER DATABASE your-db-name SET BYTEA_OUTPUT TO 'escape'; '''
QUESTION
I tried to use boost library with the code below, but it got a bunch of error when I tried to compile it
...ANSWER
Answered 2021-Mar-18 at 08:39You need to examine the error output in detail to determine what the problem is.
If we start from the end of the first error message:
QUESTION
ANSWER
Answered 2021-Jan-30 at 07:44If the ulterior motive for SetParent
is to keep the dialog in front of the view then the following might work (or it might not, depending on UI specifics). If, however, the reason is to clip the dialog to the parent view, then this won't help, though it still attempts to explain why.
Main issue here is an inconsistency in how Windows applies visual styles to (descendents of) child windows, or rather does not do that. The issue is not confined to VC++ or MFC, and has been noted [1], [2], [3], [4] (the last link is an open case on dotnet/winforms but also references MFC). Because of this issue, re-parenting the dialog as a child of the view "loses" the theming.
One additional complication here is that the window in question is a dialog, and dialogs are owned windows. Just calling SetParent
changes the parent of the dialog, but leaves the owner in place. This goes against the rule that A window can have a parent or an owner but not both. Also, SetParent
requires that the style bits be updated to remove WS_POPUP
and add WS_CHILD
instead. However, neither clearing the owner nor fixing the style bits changes the styling behavior once the dialog is made a child of the view.
The alternative is to change the owner of the dialog, instead of its parent, in which case the visual styles do in fact get applied. This keeps the dialog in front of its owner in the Z order, though it does not clip it to the owner area. The caveat, however, is that the owner must be a popup or overlapped window, so it cannot be set to the view itself, which is a child window, but instead to its closest popup/overlapped ancestor. In UIs with a single top-level window, this often means the one and only main window.
Sample code is below, with some comments inlined, and the #if 0
part that's not working.
QUESTION
I am attempting to automate a process using a batch script. I want to iterate all the files in a specific directory with a specific file extension (.gho) and do something with it.
I know I can get the file names with "dir /B *.gho" but I would like cmd to list each file name with a number and wait for input then pass file the name off to a variable so it can be combined with another variable containing a command to execute.
Example:
- WinXP.gho
- Win7.gho
- Win10.gho
What image would you like to use?
I know I can write something like this in VB.net but this is going to be used in a PE boot disk and from what I understand .net apps don't work in a PE without some work. Can someone point me in the right direction, once I know it can be done and what to look for I probably can figure out the rest myself.
Thanks in advance.
...ANSWER
Answered 2021-Jan-28 at 05:52Assuming that findstr.exe
resides in %SystemRoot%\System32
of your PE base OS, and the current working directory under which this script is running, holds your target .gho
files, here's an example template you can use:
QUESTION
I want to make a item gray. According to docs I set TVIS_CUT
in stateMask
and mask
.
But it doesn't work (the item is black as usual). TVIS_BOLD
works perfect.
I use CodeBlocks17 (gcc)/Win7x64. Also I tried VS2005 and another OS (WinXP) with the same result.
What did I miss?
ANSWER
Answered 2020-Dec-16 at 10:20I used Custom Draw
as Jonathan Potter said.
Here is one pitfall: while a current item changing, old item has CDIS_FOCUS
and CDIS_SELECTED
flags in pCustomDraw->nmcd.uItemState
member, and new item doesn't have. So pCustomDraw->clrText = (pNMTVCD->nmcd.uItemState & CDIS_FOCUS) == CDIS_FOCUS) ? ...
will works a little bit strange. I checked pCustomDraw->clrTextBk
instead. But it can be broken when user used a custom theme.
I use this article and an applied code to build the example.
QUESTION
I have a datatable with some softwares and the operating system they work on, so a software can run on different OS at the same time, and I need to iterate through all the rows of that Datatable and get a statistic of how many times a project is executed on a platform. The table below is just to create an example, my data is coming from a database through a GET response and the table is being populated by a JSP foreach method described below.
...ANSWER
Answered 2020-Oct-12 at 10:47I solved it myself. I modified the approach using the JSON parsing logic and implementing a double for loop for: iterating the rows and increasing the counter for each project
QUESTION
I have a Datatable that gets filtered on two columns: the first one is the project, and the second is the platform. Each project can be executed on each platform. I need to iterate through all the rows of that Datatable and get a statistic of how many times a project is executed on a platform. Here's part of my code where I have the table:
...ANSWER
Answered 2020-Sep-25 at 12:33Here is a start
QUESTION
I'm looking forward to use protobuf-net in conjunction with named pipes for communicating with legacy systems (WinXP 32-bit, NetFramework 4.0.3). Happily there is at least version 2.4.6 available for Net Framework 4.0. The readme.md in the latest version states that net20 / net35 can be targeted but is not supported greatly. Furthermore the info-page states that Net 4.6.1+ is required and in the project-configuration we find that at least netstandard2.0 must be targeted.
Is there any (painless) chance to compile later versions of protobuf-net for Net Framework 4.0 ? It seems there must be substitutions for "System.Buffers" and "System.Memory", which is likely to be a lot of work.
Furthermore from the source-code we can see that using protobuf-net with named pipes is still considered to be "experimental". Can there any statements be made how far this is from stable ? I would like to use protobuf-net in a productive environment like shown in IPC using Protobuf, which is quite elegant solution to me.
...ANSWER
Answered 2020-Sep-09 at 11:43protobuf-net v2 includes down-level targets for net20 and net35; protobuf-net v3 does not. For an in-depth discussion of why, please see this blog post. Could v3 hypothetically build against v2? Possibly, with suitable amounts of effort. The blog post discusses that in much more detail, though.
The readme.md in the latest version states that net20 / net35 can be targeted
Please can you provide me with a link to that, so I can get that clarified. I've checked, and I can't see that statement.
Furthermore from the source-code we can see that using protobuf-net with named pipes is still considered to be "experimental". Can there any statements be made how far this is from stable ?
The experimental named pipe basic RPC layer is entirely that: experimental; it is not considered stable, and I'll probably kill it in favour of gRPC (see also: protobuf-net.Grpc) unless I have significant reasons to add more effort. In particular, Microsoft are investing some effort into making in-process gRPC work, so it may be more pragmatic to just combine with those efforts. However! That is likely to be limited to .NET 5 (or possibly later), which doesn't help you if you're targeting .NET Framework 2.0.
Ultimately: I hate to break this to you, but: the old versions of .NET Framework are long since retired. Most library authors - and especially authors of free libraries - are unlikely to invest the significant effort required to properly support them.
QUESTION
While attempting to write a hex value to ascii (\xdd\xba\x01\x10), I found that two of the values were being changed (\xdd\xba).
Instead of outputting ݺ or \xdd\xba\x01\x10 The output would be ݺ \x77a\x01\x10
I thought the issue might have been just how it was being assigned to the test var but using pack does the same.
...ANSWER
Answered 2020-Aug-09 at 03:49reverse the values, the program is reading d
as a unhexifying string you have to reverse the hex to fix this
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install WinXP
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page