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
38
votes
5 answers

Why is it not possible to reverse a cryptographic hash?

Why can't you just reverse the algorithm like you could reverse a math function? How is it possible to make an algorithm that isn't reversible? And if you use a rainbow table, what makes using a salt impossible to crack it? If you are making a…
Keavon
  • 6,837
  • 9
  • 51
  • 79
30
votes
7 answers

How to reverse axis values when using plotly?

Here is the program I used: library(plotly) mydata = read.csv("data_to_plot.txt") df = as.data.frame(mydata) p <- df %>% group_by(X) %>% plot_ly(x = ~Y, y = ~X, z = ~Z, type = "scatter3d", mode = "lines") p and below is an excerpt of…
Andrew
  • 926
  • 2
  • 17
  • 24
11
votes
3 answers

Sending messages to objects while debugging Objective-C in gdb, without symbols

I'm trying to send messages to Objective-C objects in gdb. (gdb) p $esi $2 = (void *) 0x1268160 (gdb) po $esi (gdb) po [$esi count] Target does not respond to this message selector. I can't send any message to it. Am I missing…
asksol
  • 19,129
  • 5
  • 61
  • 68
11
votes
5 answers

byte reverse AB CD to CD AB with python

I have a .bin file, and I want to simply byte reverse the hex data. Say for instance @ 0x10 it reads AD DE DE C0, want it to read DE AD C0 DE. I know there is a simple way to do this, but I am am beginner and just learning python and am trying to…
james28909
  • 554
  • 2
  • 9
  • 20
6
votes
5 answers

Reversing the order of key-value pairs in a dictionary (Python)

How do I reverse the order of key-value pairs of a dictionary, in Python? For example, I have this dictionary: {"a":1, "b":2, "c":3} I want to reverse it so that it returns: {"c":3, "b":2, "a":1} Is there a function that I haven't heard about that…
finego
  • 61
  • 1
  • 5
6
votes
5 answers

How to store reversed string by inbuilt reverse() function in c++

how to reverse a string(not character array) using inbulit function in c++.And i need to store original copy as well as reversed one so that i can compare them for equality.please let me know how to do this
sneha sharma
  • 95
  • 1
  • 1
  • 8
6
votes
1 answer

Perl - Opcode to source code?

Is there a way to create perl source code, if I have the opcode? For example perl -MO=Concise -e "print 123" will output the opcode: 6 <@> leave[1 ref] vKP/REFC ->(end) 1 <0> enter ->2 2 <;> nextstate(main 1 -e:1) v:{ ->3 5 <@> print…
Blub
  • 3,762
  • 1
  • 13
  • 24
5
votes
1 answer

Is there any way to reverse this bitwise funtion?

I was asked to encrypt a password by creating a new procedure and what I was thinking was to work with bits to change each character of my input key with apparently unrelated characters, and so I wrote this function: (I'm working with PHP…
Baffo rasta
  • 320
  • 1
  • 4
  • 17
4
votes
1 answer

Frida print all variables in class

Hy my professor asked how you can print the contents of the variables within a class he provided us with an apk to be launched and analyzed with frida: package com.test_uni_apk.lib.proftest; public class ProfApi{ public static class…
brian konor
  • 43
  • 1
  • 3
4
votes
3 answers

What optimization is the compiler doing for my string reverse method with a classic swapping?

Question Background I read this question that is about how to reverse a string as fast as possible. I found that one of the answers was comparing different methods. In one of them, they just run a loop swapping elements from position i with the one…
Raudel Ravelo
  • 648
  • 2
  • 6
  • 24
4
votes
3 answers

C program to reverse content of a file and write that to another file

I'm having issues with an assignment where I have to take the contents of one file into a buffer, reverse those contents, and write them to another file. This program NEEDS to utilize two functions that look like this: int read_file( char*…
Pig_Mug
  • 167
  • 3
  • 13
4
votes
1 answer

how to reverse words in a sentence without helper methods in c++?

I need to read string of characters (with spaces) and reverse it. First i read a string of characters from console. char array[100]; for(int i = 0; i < sizeof(array); i++) array[i] = '0'; for(int i = 0; i < sizeof(array); i++) …
Aleksei Chepovoi
  • 3,915
  • 8
  • 39
  • 77
3
votes
1 answer

Calling function from dll with pointer not working

I made a test program and made a function that just prints some text, and I am trying to call it from a DLL by reversing it using IDA/Ghidra and getting a pointer to it. What it looks like in Ghidra I thought IDA was giving the wrong address so I…
imnotdax
  • 67
  • 5
3
votes
1 answer

React-Native Android | JScode Location in APK

I'm trying to reverse engineering the apk developed by using React-Native. I have lack of knowledge about React-Native and also Android. I don't know how the react-native work on lower level but I read that under the currently recommended bundling…
rachel_hong
  • 471
  • 2
  • 6
  • 15
3
votes
3 answers

What's a good method/function to create a reversible hash?

I need to transmit some data over the wire and I don't want that data being plain text. The text I'm sending needs to be reversed so I can't md5/sha256/etc... What's a good way to encode a salted string?
dave
  • 7,717
  • 19
  • 68
  • 100
1
2 3 4 5 6 7 8