Questions tagged [eip]

The name of the register holding the address of the next machine instruction, in 32-bit x86 assembly language.

EIP is the official name of the special register holding the address of the next machine instruction to be executed (not the instruction currently being executed), in 32-bit x86 assembly language. It is an acronym for Extended Instruction Pointer. The name is historical: when the 8086 architecture was extended to 32-bit word size, all the formerly 16-bit registers grew an "E" prefix on their names, whether or not it was useful to be able to refer to the low 16 bits of the register separately. (It is not possible to use "IP" in 32-bit code to read the low 16 bits of the instruction pointer.) The same pattern was repeated more recently: in 64-bit code this register is referred to as "RIP".

Most non-x86 architectures call their analogous register PC (for Program Counter) and do not bother encoding its size into the name.

104 questions
1
vote
1 answer

Buffer overflow : EIP and jump correctly set but segfault

I am performing a buffer overflow, by avoiding the canary through a memcpy to a pointer, as explained here . In short, you overwrite the address a pointer points to, with the address of the RET in the stack. So memcpy-ing to that pointer,…
npit
  • 2,219
  • 2
  • 19
  • 25
1
vote
1 answer

Apache Camel EIP route - How to stop split()

I have some problems with a following route: // from("cxf:....")... from("direct:start").process(startRequestProcessor) // STEP 1 .choice() .when(body().isNull()) .to("direct:finish") …
S2201
  • 1,339
  • 3
  • 18
  • 35
1
vote
2 answers

Talend ESB convert xml to json in route

Someone knows how to convert xml to json and json to xml in Talend ESB route? When I receive rest message in Job I can configure "consume" and "produce", but how to do this in Route. I need to do some mediation on rest message, so I have to use…
Kacu
  • 438
  • 4
  • 23
1
vote
1 answer

ActiveMQ and Integration Patterns: where to implement?

I have a small project in which tweets from twitter are consumed by an application, put into a JMS queue on an ActiveMQ, read from another application to to enrich each tweet and then returned into another JMS queue on the ActiveMQ server.…
Tobias
  • 7,238
  • 10
  • 46
  • 77
1
vote
1 answer

Are function locations altered when running a program through GDB?

I'm trying to run through a buffer overflow exercise, here is the code: #include int badfunction() { char buffer[8]; gets(buffer); puts(buffer); } int cantrun() { printf("This function cant run because it is never…
a1ph4byte
  • 73
  • 5
1
vote
1 answer

Move EIP from EC2 classic to EC2 VPC

I've a infra hosting around 300 websites on single EIP. I'm making alot of infrastructure changes and would enforce me to move VPC as classic is deprecated. So is there a way to retain the same EIP (launched in classic) and associate it with…
Swaroop Kundeti
  • 515
  • 4
  • 11
  • 25
1
vote
1 answer

Apache camel bindy - how to log or debug

I'm trying to get some log informations from camel bindy. I had a working setup using an BindyCsvDataFormat bindyProduct with an annotated product-bean and an csv file as source. Now I changed the CSV file and the annotated bean. The processing…
Andreas Jabusch
  • 109
  • 2
  • 9
1
vote
1 answer

Apache camel (which EIP to use here?) aggregate/enrich all rows with repeating header data

I have a CSV I am processing formatted like so: 01,H2,H3 02,B2,B3,B4,B5 02,B2,B3,B4,B5 02,B2,B3,B4,B5 02,B2,B3,B4,B5 01,H2,H3 02,B2,B3,B4,B5 02,B2,B3,B4,B5 01,H2,H3 02,B2,B3,B4,B5 02,B2,B3,B4,B5 02,B2,B3,B4,B5 01 specifies header row and 02…
Mazzy
  • 327
  • 2
  • 10
0
votes
1 answer

If I rebuild using the same sources, will the EXEs have the same offsets?

I get crash reports from users with some Dr. Watson info, including the EIP. I want to start debugging, then set the EIP and see which line this takes me to. I also have Line Info enabled in the Release builds. I have a label in source control so I…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
0
votes
0 answers

How do I implement a streaming split of elements in a big XML file using Apache Camel and tokenizeXML?

I have big file of xml and I want make a split for multiple of elements with Apache Camel public void configure() { from("timer://foo?period=30000") // Create a message every 5 seconds …
0
votes
0 answers

By using buffer overflow how to execute overflowed() function by using gdb in linux?

#include #include void overflowed() { printf("%s\n", "Execution Hijacked"); } void function1(char *str) { char buffer[5]; strcpy(buffer, str); } void main(int argc, char *argv[]) { function1(argv[1]); …
0
votes
1 answer

Error when testing diamondCut function in SolidStateDiamond library

I'm writing a test for my diamond smart contract This is my diamond solidity smart contract: Crud.sol //I want to test diamond smart contract using crud operation // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; //Libraries --> import…
Syre Musk
  • 57
  • 7
0
votes
1 answer

SolidStateDiamond smart contract is compiling with errors

I'm working on a Diamond Token contract using Hardhat framework //SPDX-FileCopyrightText: © 2023 Ndubuisi Favour //SPDX-License-Identifier: MIT pragma solidity ^0.8.17; //Libraries --> import…
Syre Musk
  • 57
  • 7
0
votes
1 answer

Control eip/rip register via user input

I have the exercise to control the input of the eip/rip register (in my case rip) arbitrarily. The following program is given: #include #include #define VAR_SIZE 32 void output(int argc, char** argv) { char…
user12281035
0
votes
0 answers

How to write a offchain method for Clones.predictDeterministicAddress(erc20TokenImplementation, salt);

I want to write javascript method for same function predictDeterministicAddress( address implementation, bytes32 salt, address deployer ) internal pure returns (address predicted) { assembly { let ptr := mload(0x40) …