Questions tagged [reversing]

Reversing refers to performing a task in the direction opposite to that which the task is normally performed in. It also refers to changing the order of an ordered list of items such that they are rearranged from the last item to the first item. For questions related to discovering the principles of a human made system through analysis, please use [tag:reverse-engineering].

Reversing refers to performing a task in the direction opposite to that which the task is normally performed in.

It also refers to changing the order of an ordered list of items such that they are rearranged from the last item to the first item.

For questions related to discovering the principles of a human made system through analysis, please use .

113 questions
3
votes
1 answer

C# GetForegroundWindow() returns the same result for multiple windows, EnumWindows does not really return that # at all

C#'s GetForegroundWindow() returns the same result for multiple windows, EnumWindows does not really return that window at all. Each process really has its own tier. I've also went through both of the GetWindowThreadProcessId() functions and…
ploxtic
  • 273
  • 3
  • 4
  • 20
2
votes
0 answers

Android reversing-can not see my loaded so file in the maps file

During the APK execution the application loads SO file via JAVA loadLibrary API. The procedure succeeded and it ran the the SO code. Analyzing the /proc/PID/maps file of the process does not show the SO loaded file! The SO file haven't unloaded or…
ReverseQ
  • 21
  • 1
2
votes
1 answer

Cutter console does not show printf result

0 I'm using last version (2.0.5) of Cutter. I am not able to find a way to display std in/out in Cutter Console. In the picture I cleared the console before starting debugging and you can see it after the call to the printf. Am I doing something…
Luigi
  • 21
  • 4
2
votes
5 answers

Reverse marked substrings in a string

I have a string in which every marked substring within < and > has to be reversed (the brackets don't nest). For example, "hello , how oday?" should become "hello stackoverflow, how are you today?" My current idea is to…
FirimaElda
  • 125
  • 6
2
votes
1 answer

Reversing hash, Finding collision (XOR with sums and left/right shifts)

A ^ ( (A >> 2) + (A << 5) + C ) == B How to find A if B is const and C is variable? (C can be changed if there is no solution with it) A is DWORD, B is DWORD, C is BYTE != 0 Edit1: after GalacticJello's answer, I've got another question: is there…
RIscRIpt
  • 163
  • 3
  • 12
2
votes
3 answers

Reverse a LinkedList c++

Possible Duplicate: Unable to reverse a linked list I'm trying to reverse a linked list: void LinkedList::reverseList() { Node *next=_head; Node *prev=0; while(next!=0) { Node *tmp=next->_next; next->_next=prev; …
Maroun
  • 94,125
  • 30
  • 188
  • 241
2
votes
2 answers

(C++/WinAPI) Reversing LPSTR

i have some problems to reverse LPSTR. Here is my function: LPSTR Reverse(LPSTR a_lpText) { int nTextLength = strlen((char*)a_lpText); LPSTR lpReversed = (LPSTR) GlobalAlloc(GPTR, nTextLength + 1); for (int i = 0; i < nTextLength; ++i) …
1
vote
2 answers

Writing a function in javascript that is the inverse of another

I'm trying to write a function that is the inverse of the function below. So that I can get the output from the function foo and generate it's input parameter. I'm not entirely sure if it's possible. function foo(str){ var hexMap = { …
KDV
  • 730
  • 1
  • 6
  • 12
1
vote
1 answer

reversing an array created dynamically. code not running properly

reverse the elements of an array that is created dynamically by user inputs. this is the question. I have written a code in C language. The problem with this code is that it is compiled successfully without an error but does not take input more than…
1
vote
1 answer

Keep getting memory trash in my string in C

I made a program that reverses a string in C, it's working fine, but I keep getting memory trash when I print the result. I tried this: That's my program: #include #include #define SIZE_STRING 20 void reverse_string(char*…
1
vote
1 answer

Need help understanding ida pseudocode

I am new to reversing. I have stumbled upon a line of code which I am unable to understand. return (*(_int64(**)(void))(**(_QWORD **)(v1 + 0x3C8) + 0x68LL ))(); The code is for arm64 lib. So , what I understood is that it's returning a pointer out…
Akram Raza
  • 11
  • 3
1
vote
2 answers

How to reverse a doubly linked list?

I'm trying to reverse a linked list and I wrote the code for that. But, when I print the list after reversing it, the output is kinda incomplete. public void reverseDoubly() { Node temp = null; Node current = head; if(current == null)…
rhino
  • 11
  • 4
1
vote
1 answer

Linked list traversal after reversing the linked list

I've been trying to run this linkedListTraversal() function after reversing the linked list using the function reverseLinkedList(). I know that I'm applying the correct logic in the reverseLinkedList() function. But for some reason i'm getting the…
1
vote
1 answer

Getting weird types on hooking native method with Frida

I'm trying to hook some function in an class it works fine but I want to view one argumant that is an class instance and this class has field that is String type, but when I try to get this field I get some really weird type instead of the…
SiriusED
  • 11
  • 1
1
vote
4 answers

How to reverse a 2D array in java?

I am trying to reverse all of the content in a 2D array. The last value should be the first, and the first value should be the last. For example, an input of [1,2,3], [4,5,6], [7,8,9] would return: [9,8,7] [6,5,4] [3,2,1] This is some code I have…
SanaK5
  • 17
  • 5