This code indicates success, rather than an error.
This may not be the correct interpretation of this code,
or possibly the program is handling errors incorrectly.
The standard (low-cost) way to program ARM microcontrollers is using Eclipse with a complex toolchain plugged into it. Eclipse has definitely its merits, but I'd like to feel independent from this IDE. I'd like to discover what happens behind the scenes when I build (compile - link - flash) my [...] read more
I am working on an Embedded ARM9 development board. In that i want rearrange my nand partitions. Can anybody tell me how to do that ? In my u-boot shell if i give the command mtdparts which gives following information . Boardcon> mtdparts device nand0 <nandflash0>, # parts = 7 [...] read more
I'm trying to embed the osk in a wpf window or a user control and I've found the code below and it's working for notepad but for tabtip.exe, it's saying that it doesn't have a graphical interface?? WaitForInputIdle failed. This could be because the process does not have a graphical [...] read more
I'm trying to use the Windows API to set the primary monitor. It doesn't seem to work - my screen just flicks and nothing happens. public const int DM_ORIENTATION = 0x00000001; public const int DM_PAPERSIZE = 0x00000002; public const int DM_PAPERLENGTH = 0x00000004; public const int DM_PAPERWIDTH = 0x00000008; public [...] read more
An application is generating a core file. Here is the core info. The error stack was obtained and the objective is to check the data content within the myStruct variable as this is what gets passed into myFunction when the core occurs. (gdb) where #0 0x000000000041bba1 in myFunction (myStruct=0x7ffff9dd0c20) at [...] read more
I am working on a WCF service that is hosted as a windows service which uses named pipes - NamedPipeServerStream (Users privilege) to establish secured connection between server and client processes. To check the authenticity of the client process, I need to verify the digital signature of the client process [...] read more
I am trying use a port from two applications and have each of them receive the packet from a different set of IP addresses. In order to achieve this, I use the SO_REUSEPORT and SO_ATTACH_REUSEPORT_CBPF socket options. My code is as follows: parentfd = socket(AF_INET, SOCK_STREAM, 0); if (parentfd < [...] read more
According to Apple documentation, in the callback to FSEvents, /* These flags are only set if you specified the FileEvents */ /* flags when creating the stream. */ kFSEventStreamEventFlagItemCreated = 0x00000100, kFSEventStreamEventFlagItemRemoved = 0x00000200, kFSEventStreamEventFlagItemInodeMetaMod = 0x00000400, kFSEventStreamEventFlagItemRenamed = 0x00000800, kFSEventStreamEventFlagItemModified = 0x00001000, kFSEventStreamEventFlagItemFinderInfoMod = 0x00002000, kFSEventStreamEventFlagItemChangeOwner = 0x00004000, kFSEventStreamEventFlagItemXattrMod [...] read more
I want to implement the DEADLINE scheduling policy in C. I know the feature is implemented since Linux 3.14.10 and I'm using Ubuntu 14.04 Linux #### 3.17.0-031700-lowlatency #201410060605 SMP PREEMPT which should be recent enough. I develop the program with Eclipse (launched as sudo). I've defined _GNU_SOURCE and included sched.h [...] read more
I am working on an embedded system (Stellaris Launchpad) and writing a simple OS (as a hobby project). The used toolchain is gcc-none-eabi. My next step is to get used to the MPU to allow the kernel to prevent user programs from altering specific data. I have a bunch of [...] read more
I have some C# code (VS2010;fx2) which is used to carry out printer functions. This code works fine in Windows XP environment. Changing to Windows 7, it no longer works correctly. The first different behaviour is that the GetPrinterNames() method now only returns local printers. As you can see, the [...] read more
I am having trouble setting up my router to connect to the Internet. I am currently renting a basement unit and I have an Ethernet port running upstairs to the owner's floor. I have verified that port is active by plugging my desktop into that port and being able to [...] read more
I am installing the I2CTools USB-to-I2C Elite driver for Win 10 x64, but I got a dialog saying ”Jungo Connectivity: a digitally signed driver is required.” In device manager the two drivers JungoConnectivity WinDriver1251 and USB-to-I2C Elite drivers are marked with yellow triangles and Details says: Not digitally signed. I [...] read more
Microsoft OneDrive allows file to be stored either locally, remotely or in the both ways. This is determined by new file attributes which appeared in the Windows 10: FILE_ATTRIBUTE_PINNED 0x00080000 FILE_ATTRIBUTE_UNPINNED 0x00100000 FILE_ATTRIBUTE_RECALL_ON_OPEN 0x00040000 FILE_ATTRIBUTE_RECALL_ON_DATA_ACCESS 0x00400000 as well as some file attributes inherited from previous versions of Windows: FILE_ATTRIBUTE_SPARSE_FILE 0x00000200 [...] read more
I just found legacy code which tests a flag like this: if( some_state & SOME_FLAG ) So far, so good! But further in code, I see an improper negation if( ! some_state & SOME_FLAG ) My understanding is that it is interpreted as (! some_state) & SOME_FLAG which is probably [...] read more
I am currently creating a program which can modify addresses, but I can't seem to get it working. I have multiple addresses in a Cheat Engine file but I want it to be editable from a C# form. The things I've tried are this: myMemory.ReadProcess = pname1[0]; myMemory.Open(); int[] a [...] read more
So we had a hard drive failure today and it got me thinking. It was a 200GB, sata, hard drive and since it was installed there has only been one 20 GB ext2 partition on that drive. Could the rest of the drive be fine? No other partitions on that [...] read more
Update 3: 22 January 2017 I've narrowed down the update that causes this problem: KB3201845 OS Build 14393.479 from December 9 2016. I went through all these updates step by step. Looking at the changes files manifest, these files have been changed: * agilevpn.sys * vpnike.dll Other topics I've created: [...] read more
I am using the following code segment to change the screen resolution of windows via python and it works fine for 1366x768, 1024x768, 800x600 resolutions. But it is not working for 1440x810 resolution. What is wrong here? import ctypes import struct import sys def set_res(width, height, bpp=32): DM_BITSPERPEL = 0x00040000 [...] read more
I want to implement a C program that captures all the Precision-Time-Protocol (PTP) frames on the Ethernet, so I created a raw socket and attached a filter for PTP, I use recvmsg() to read data from the socket. The first issue is that I wasn't receiving any PTP frames so [...] read more
I am writing a simple webcam recorder using Webcam Capture API, Xuggler and Java's Sound API. I've been using JDK 1.8 for this project and almost completed it. I am able to record video with audio using those libraries. But when I switch to AdoptOpenJDK 11 (jdk-11.0.4.11-openj9) and run the [...] read more
I'm running a RT program on BeagleBone Black with Xenomai and trying to figure how to monitor/understand context switches (I know the concept of context switches) so that I can determine when my program (in C using POSIX skin) switches from primary and secondary mode. Here's the program main_posix.c #ifndef [...] read more
I have a header file (not written by me, which I cannot change) which contains definitions in the following format: #define SPC_TMASK0_NONE 0x00000000 #define SPC_TMASK0_CH0 0x00000001 #define SPC_TMASK0_CH1 0x00000002 #define SPC_TMASK0_CH2 0x00000004 #define SPC_TMASK0_CH3 0x00000008 #define SPC_TMASK0_CH4 0x00000010 #define SPC_TMASK0_CH5 0x00000020 #define SPC_TMASK0_CH6 0x00000040 #define SPC_TMASK0_CH7 0x00000080 #define SPC_TMASK0_CH8 0x00000100 [...] read more
In the code below, the person points a register at an address, I get that. Why is it that later on he didn't just load R3 into R1, why did it have to be offset by 0x14? How did R1 move in a few lines of code and what made [...] read more
I have .Net application to interact with the crypto token (Smartcard) using PKCS11Interop library where users can login to the token and generate keypair and sign. If users enter the wrong password multiple time token will be locked, how can I get the remaining number of attempt to login to [...] read more
I'm trying to write the most simple program for Tiva C launchpad. Stack pointer value and program counter value are automaticaly taken from the two first 32-bits words of flash. But, for somehow reason, when I debug with gdb, the stack pointer gets 0x0. This causes that program fails. I'm [...] read more
I am using Eclipse to cross compile a g++ project for an ARM processor. I am using the yagarto toolchain in a Windows environment. I have no issues with C projects, but with C++ I keep receiving the errors: libc.a(lib_a-abort.o): In function `abort': abort.c:63: undefined reference to `_exit' libc.a(lib_a-sbrkr.o): In [...] read more
After updating some VMware virtual machines to RHEL 6.8 (kernel 2.6.32-642) it appears that the size of the virtual console has been increased -- it is huge. No X server is running in the console, i.e., it is a classical text-based linux console. When I log in through the virtual [...] read more
We have a HW problem with the disks, that made all the mount points to be read only. Output of dmesg: end_request: I/O error, dev sda, sector 15574609 sd 0:0:0:0: SCSI error: return code = 0x00040000 We want to analyze a program that is currently running, because it should have [...] read more
Following bootlin embedded linux course and faced an issue (similar to UBI layout volume not found but my problem is further than original one) I am creating rootfs and data volume images: mkfs.ubifs -d ./www/upload -o ../data.ubifs -e 124KiB -m 2048 -c 66 mkfs.ubifs -d ./ -o ../rootfs.ubifs -e 124KiB [...] read more
I am trying to write a sort of driver using python for windows 8. I will be receiving touch coordinates via serial which I then want to use to make it appear as though someone touched those coordinates on the screen (emulate a touch). My first question is: Is a [...] read more
I am trying to use an Undecorated stage in a JavaFX project, stage.initStyle(StageStyle.UNDECORATED);. It is a modular Gradle project. It is also a multi-project build, though because I am working on it in IntelliJ, it might be more appropriate to refer to it as a multi-module build. I wish to [...] read more
I have been scratching my head for the past 2 days trying to figure out what is wrong with my very simple UART program on System Workbench for STM32 from STMicroelectronics. For some reason when I set: USART3->BRR = (16000000/9600); //Sets the baud rate to 9600 with a clock of [...] read more
I've got some working C# code to work with some Windows API calls (based on my Get-CertificatePath.ps1 PowerShell script), but the F# version fails. I'm sure I'm missing something, most likely an attribute, but I haven't been able to figure it out. Is there a way to get the F# [...] read more
I'm writing a python script to delete files on MacOS, and I run into SIP protected files. I know the presence of st_flags more than likely mean I can't delete the file. Like here: >>> os.stat(f).st_flags 524288 But I'm curious to know what that actually means. I looked in stat.h [...] read more
GOAL: write a BPF filter which allow just UDP packets from a specific src address and attach it to and UDP socket. PROBLEM: if I execute the program and I try to send udp packets from a VM which has the correct src IP I don't receive none of them [...] read more
I am trying to make resizable borderless Unity project. I have no problem to make borderless window but when I try to make resizable it works however a white area appears at the top https://imgur.com/8nNWpN3 [DllImport("user32.dll")] private static extern int SetWindowLong(IntPtr hWnd, int nIndex, uint dwNewLong); private const int GWL_STYLE [...] read more
We have a linker script with a custom section that was added for some IEC compliance test reasons. However, ever since adding this section the binary size created via objcopy -O binary input output has exploded from ~150kbytes to ~ 512Mbytes. I've traced it down to the section missing the [...] read more
> NOTE: This is a modified version of my original post here but poses a slightly > different question. I am going through this video on buffer overflows but am having some trouble replicating the demo. The issue appears to be when I execute the overflow the intended return address [...] read more
I am trying to understand information stored in the method table. Here is my code. class MyClass { private int x = 60; private int y = 90; public void MethodB() { Console.WriteLine("MethodB"); } public void MethodC() { Console.WriteLine("MethodC"); } public void MethodA() { GetHashCode(); Monitor.Enter(this); Console.WriteLine("Attach debugger now"); Console.ReadKey(); [...] read more
I've created a small app to make backups of disks and to restore a disk from a backup. The logic is pretty simple: * Call CreateFile on \\.\PhysicalDrive<index> * Do the same for destination physical drive * Call DeviceIoControl with FSCTL_LOCK_VOLUME on source + destination handles * Call DeviceIoControl with [...] read more
I want ADC Interrupt Service Routine to be called after each End of Conversion. However it is not being called. Here's is my code: #define RCC_APB2ENR (*((volatile unsigned long*) 0x40021018)) #define ADC1_CR1 (*((volatile unsigned long*) 0x40012404)) #define ADC1_CR2 (*((volatile unsigned long*) 0x40012408)) #define ADC1_SMPTR2 (*((volatile unsigned long*) 0x40012410)) #define ADC1_SQR1 [...] read more
I have built a jar of a spring application using package maven plugin. Locally, I can run it with java -jar -Dspring.profiles.active=dev target/my.jar and everything works. Then I copied the jar to a remote server using scp, logged in with ssh, copied all resources which my application requires and tried [...] read more
I would like to have a dynamic Memory map, like example to have flash spliced in 5 sections and according to a define in some file .h to set a proper memory map. But have some problems to do it :) So this region would be dynamic allocated by defines [...] read more
I'm using the GetSecurityInfo funtion to get my own process's Discretional Access Control List (DACL): PACL oldAcl; Pointer se; GetSecurityInfo(GetCurrentProcess, SE_KERNEL_OBJECT, DACL_SECURITY_INFORMATION, null, null, ref oldAcl, nil, ref se); And then i can use the GetExplicitEntriesFromAcl to crack open the ACL to get at it's list of Access Control Entries [...] read more
Some of the users are getting following access denied error upon looking in sharepoint logs. These users were earlier able to access the SharePoint site. But all of sudden they are getting "An Unexpected error has occured". PermissionMask check failed. asking for 0x00000005, have 0x400000300C231061 PermissionMask check failed. asking for [...] read more
The new Eclipse J9 jvm does not come bundled with JavaFX, so I have tried to build OpenJFX but have failed. I believe I have followed all the build instructions on the OpenJFX website. I have Gradle 3.1, Ant, and the required libraries installed. I'm running Fedora 26. J9 appears [...] read more
I'm developing a web application that access a clearquest database via the Java API. It works fine under Tomcat. Now I have to convert that application to WebSphere Application Server 8.5.5. At the first call to Clearquest the application and the JVM terminates: Unhandled exception Type=Segmentation error vmState=0x00040000 J9Generic_Signal_Number=00000004 ExceptionCode=c0000005 [...] read more
I'm trying to animate the form on loading. I used AnimateWindow: public partial class AdministrationMDI : Form { [DllImport("user32")] static extern bool AnimateWindow(IntPtr hwnd, int time, AnimateWindowFlags flags); public AdministrationMDI() { InitializeComponent(); } enum AnimateWindowFlags : uint { AW_HOR_POSITIVE = 0x00000001, AW_HOR_NEGATIVE = 0x00000002, AW_VER_POSITIVE = 0x00000004, AW_VER_NEGATIVE = 0x00000008, [...] read more
Greets, I found a similar question at Opening OLE Compound Documents read-only with StgOpenStorage but that solution didn't work for me. I try to open an outlook .msg file with StgOpenStorage(). My problem is, that StgOpenStorage always locks my file. So, how can I avoid/remove the lock StgOpenStorage() adds to [...] read more
My linux-3.0 kernel was panicking saying ERROR: Failed to allocate 0x1000 bytes below 0x0. while booting. So I changed the bootargs and added a boot parameter mem = 16M. Now it boots fine but it takes a lot of time to boot. I have tried with higher mem value also [...] read more
I'm trying to write an application which will creates a new desktop using the Win32 API. The below code works in Windows 7 but but in Windows 8 the desktop is created with out the desktop icons and with an empty taskbar. public class Desktop { private const int NORMAL_PRIORITY_CLASS [...] read more
This line doesn't work in my code now here is the code and error uint PROCESS_ALL_ACCESS = (DELETE | READ_CONTROL | WRITE_DAC | WRITE_OWNER | SYNCHRONIZE | END); A field Initialize cannot reverence the non static field Here is the article i made this from: http://blackandodd.blogspot.com/2012/12/c-read-and-write-process-memory-in.html public class MAin { [...] read more
I'm trying to pinvoke a function that receives a couple of WCHAR <paramName>[1] parameters. From what I've read in multiple places, in C/C++ you can't actually pass arrays to functions, instead they get converted to a pointer holding the first element of the array, which means that the array length [...] read more
My Eclipse(version 3.7.2 32 bit) RCP application crashes on an RHEL 7 machine every time I open file browser and scroll through the folders list to select a folder--by scroll I mean: clicking on the navigation scroll bar on the right side of the file browser, or even typing the [...] read more
I'm trying to match two strings from a text file.I wrote a function to perform the matching for both strings. Only one string is printed and the other one is ignored although the sequence works : matched the string and tested with an online regex tester. NVRAM_info.txt NvRam is available, [...] read more
I have PyQt test application which opens window. I use event filter to disable all gestures on MS Surface for my application. Some guestures (e.g. "Press and hold") are not recognized now, but not all. If one finger presses the screen and you press a second finger, transparent square appears [...] read more
I am trying to set an integer variable to a combination of an enum values, the enum is: public enum WebBrowserDownloadControlFlags : uint { DLIMAGES = 0x00000010, VIDEOS = 0x00000020, BGSOUNDS = 0x00000040, NO_SCRIPTS = 0x00000080, NO_JAVA = 0x00000100, NO_RUNACTIVEXCTLS = 0x00000200, NO_DLACTIVEXCTLS = 0x00000400, DOWNLOADONLY = 0x00000800, NO_FRAMEDOWNLOAD = [...] read more
I am following Bootlin's embedded Linux training which aims to put an embedded Linux system on an Atmel SAMA5D4 Xplained board (theory slides, practical lab instructions) and I am stuck a putting the whole system on the NAND flash. They ask me to put the DTB, the kernel, the root [...] read more
Trying to find a way to execute a command as a different user with credentials I came across this great answer by Eryk Sun. Trying to melt it down to my needs, I saw some strange behaviour. For ease of copying, I put the code from that answer as a [...] read more
I have 3 files: a .cpp file containing definitions, a header file for declarations and macros and another file(.cc) that calls the header file. The problem I'm having is at runtime I seem to be getting an "undefined sysmbol error related to the function "channel select" that I'm trying to [...] read more
Sorry i am very newer in this part and i am going to confuse every step ... I Want to read a protected memory that need to bypass protection to enter. I have a hookdriver.sys file and want to bypass the protection and read How can i connect the hookdrv.sys [...] read more
Recently I had copied this code (Thanks CristiFati): Python- How to communicate with printer While its working on its own, I can't figure out how can I get total page counting to work, I added it to DEFAULT_FIELDS var and to NotifyData method, without luck as follow: def NotifyData(self): if [...] read more
I'm trying to hosting an exe(Putty) on the WPF program by using WinfowsFormsHost and success, here is the code: [DllImport("user32")] static extern IntPtr SetParent(IntPtr hWnd, IntPtr hWndParent); //Putty.exe has been start by cmdline and here is the `process` public void AddPuttyPage(Process process) { var picPan = new System.Windows.Forms.Panel(); var winform [...] read more
My question is how to run an application(.exe) inside WPF application. I mean running inside a window of an application, not an external running an application, in this code notepad work but if change .exe file (e.g calc.exe) application open in exte private Process _process; [DllImport("user32.dll")] private static extern int [...] read more
What I'm trying to achieve is a Tkinter window, using overridedirect, that show up in your taskbar. You can minimize it like a normal window, and bring it back up like a normal window. The problem that I'm having right now is that I've achieved adding it to the taskbar, [...] read more
I have this code in this code I have do custom design but when I try to change the icon it is not changing import tkinter as tk import tkinter.ttk as ttk from ctypes import windll GWL_EXSTYLE=-20 WS_EX_APPWINDOW=0x00040000 WS_EX_TOOLWINDOW=0x00000080 def set_appwindow(root): hwnd = windll.user32.GetParent(root.winfo_id()) style = windll.user32.GetWindowLongW(hwnd, GWL_EXSTYLE) style = [...] read more
I have a PCI device as follows > DEVPATH=/devices/pci0000:00/0000:00:0c.0/0000:04:00.0 % lspci -s 04:0 04:00.0 Non-VGA unclassified device: This publishes multiple i2c buses. So am attempting to learn how to translate this to ACPI. Investigation so far % cat /sys/bus/pci/devices/0000\:00\:0c.0/firmware_node/path \_SB_.PCI0.PEX3 So, I create the device within the scope of this [...] read more
I can't seem to get any formatting when creating a HTML format .msg file. The text shows up in the body but the HTML formatting is not applied. Any suggestions? RDOSession rdoSession = new RDOSession(); rdoSession.Logon(); // Start with a seed.msg File.Copy(@".\seed.msg", @".\test.msg", true); RDOMail rdoMail = rdoSession.GetMessageFromMsgFile(@".\test.msg", false); // [...] read more
I am trying to use freeling to recognize and classify named entities in Spanish, I am testing with the analizer as I still don't understand how to use the Python API. So when using the analizer in a text it doesn't recognize or classify named entities or dates or anything [...] read more
#include <ESP8266WiFi.h> #include <FirebaseArduino.h> //Firebase settings #define FIREBASE_HOST "..........firebaseio.com/" //cant share #define FIREBASE_AUTH "..............." //cant share //Wi-Fi settings #define WIFI_SSID "kello" #define WIFI_PASSWORD "8888" //Define trigger and echo digital pins const int trigPin = 4; const int echoPin = 3; // The amount of time the ultrassonic wave will be [...] read more
I need to embed a qt/c++ application in a wpf mvvm application. The window of this qt/C++ has to be integrated in a wpf page displayed in a tab page. The page Control is the following : <page x:Class="Wpf_HostExe.Page1" xmlns:="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Page1" Loaded="OnLoaded"> <Grid> <Border x:Name="HostUi" Background="White" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" /> [...] read more
With gdb i want to put this adress 0x7fffffffe0f0 in rip register to succeed my buffer overflow. The issue is that the size of this address (0x7fffffffe0f0) is greater than the address where the rip register is saved (0x00ffff10). Why the address in the stack is greater than the saved [...] read more
I created my first gcc linker script for a SAMD51J19 microcontroller through atmel studio and it compiles great without issues but when loaded into the device weird quirky errors happen. Sometimes it hard-faults, sometimes it doesn't, sometimes interrupts aren't sent to the handler, sometimes they are. Sometimes functions are run [...] read more
I am following Bootlin's embedded Linux training which aims to put an embedded Linux system on an Atmel SAMA5D4 Xplained board (theory slides, practical lab instructions) and I am stuck a putting the whole system on the NAND flash. They ask me to put the DTB, the kernel, the root [...] read more
I am trying to convert hex values stored as int and convert them to floatting point numbers using the IEEE 32 bit rules. I am specifically struggling with getting the right values for the mantissa and exponent. The hex is stored from in a file in hex. I want to [...] read more
I'm having Issue getting AutoITv3 to send a Control Down key stroke to a background program using the ControlSend function. I've been successful in getting the ControlClick function to work as shown below. I've tried using both the ClassnameNN and the Class as the Control ID, both Failed. I've also [...] read more
If I want to write a cBPF program which filter icmp packet I can do it by execute tcpdump with -dd option which > Dump packet-matching code as a C program fragment. ..see the example below How can I write the same program with eBPF instructions ? #include <sys/socket.h> #include [...] read more
GOAL: write a simple packet filter using BPF. The packet filter should allow you to choose the interface. PROBLEM: if I uncomment the third to last instruction in the code (where there is a call to recvfrom, the execution just hangs and I can't see no output (neither "buffer zeroed" [...] read more
Iam doing a Bootloader for an arm cortex m0 based microcontroller and for that I have gone through some projects in github and I donot understand some of the lines in the following code. What is the meaning of the line *(__IO uint32_t*)APP_ADDRESS) & ~(RAM_SIZE-1) in the following code. It [...] read more
I need to convert a uri path like file:///C:/test folder/file.text to windows style path C:/test folder/file.text. For that, I am trying to use PathCreatesFromUrlA API using the following code but I just don't understand how to set up the last two parameters to the API (marked as ??? in the [...] read more
I would like to use usart communication on STM by using following code. I take this code from website.There are two buffers that stores rx and tx values. I can transmit data from tx buffer but when I connect GPIOB10 and GPIOB11(rx and tx pins) each other. I couldn't see [...] read more
I'm trying return-to-libc exploit on simple program. I've managed to locate stack address where input string is stored, and locations of libc functions and build my payload base on it. [padding(252-byte)] + [system(4-byte)] + [exit(4-byte)] + [argument(4-byte)] I opened the vulnerable program with gdb and injected payload. When I check [...] read more
In my project, data is written to a BRAM (generated through the Block Ram IP generator) from a custom IP. Then, I use an AXI BRAM controller to interface the memory with the AXI bus and make it accessible to the Linux running on the ARM. The base address for [...] read more
i am trying to execute a ret2libc attack. For this, i need to call the System() from libc and passing the argument "/bin/sh" (address of /bin/sh). Unfortunately I get everytime "Segmentation Fault". Please can anybody tell me why? If I am looking to the stack, everything looks fine (for me). [...] read more
I am facing issue while running a EXE. I ahve tried all possible way avialble on net as far as I did research. 1) Go to gpedit.msc-computer configuration-windows settings-security settings-local policies-security options.Change "User Account Control: Behavior of the elevation prompt for standard users:" to "prompt for credentials". 2) I tried [...] read more
I need to add a small heap to use standard library functions on a TM4C ARM microcontroller (_sbrk requires the end symbol). This is my linker script (came with a microcontroller demo): /* Entry Point */ ENTRY(Reset_Handler) HEAP_SIZE = 1024; MEMORY { FLASH (rx) : ORIGIN = 0x00000000, LENGTH = [...] read more
I'm currently trying to make deezer wrapper for native library to work. It works until it tries to play the track : I got a callback saying PLAYLIST_TRACK_NO_RIGHT. I've tried to read this track with online deezer website and it works well. I also tried with another tracks that works [...] read more
I am trying to get BackupRead() and BackupWrite() to work using http://pinvoke.net as my reference. Most answers I find in google are referencing C++ or even Delphi... I want to backup a file/folder with their ACL. EDIT: This is my current code (I am setting privileges for SE_BACKUP_NAME and SE_RESTORE_NAME [...] read more
I'm writing a baremetal kernel, and I have trouble understanding the output of ld in the case of a NOLOAD section. I am declaring symbols that only exists with MMU activated, so the VMA and LMA are not the same. I used to declaring such a section like this: _foobar_start [...] read more
On linux 2.6.25 i have output: physmap platform flash device: 00800000 at ff800000 physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 physmap-flash.0: CFI does not contain boot bank location. Assuming top. number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code [...] read more
I am trying to host/run an Exe application within a panel inside of the main window of my program. The main window has a grid with 3 columns - two columns split evenly with a vertical grid splitter to section the left and right columns. The left column has a [...] read more
I'm using HwndHost to embed an external application in my WPF window. I noticed on some Windows 7 machines, if an Aero Theme is selected and Desktop Composition is enabled, the external application starts, flickers on the screen for a split second and then it disappears. If I turn off [...] read more
I am already stuck for many days trying to implement a code in DS-5, targeting Cortex-A9 and using NEON SIMD intrinsics. I managed to execute some small programs through the debugger, but when I am trying to allocate memory bigger than 256KB I always get a message > Description Resource [...] read more
While trying to create nested threads, helgrind reports several different types of data races. ==4429== Possible data race during write of size 8 at 0x5673830 by thread #13 ==4429== Locks held: none ==4429== at 0x4C379EF: memset (in /usr/lib/valgrind/vgpreload_helgrind-amd64-linux.so) ==4429== by 0x5060C85: get_cached_stack (allocatestack.c:250) ==4429== by 0x5060C85: allocate_stack (allocatestack.c:501) ==4429== by [...] read more
I'm using a bootloader as a hex and s19 files in my project, so i'm not allowed to modify its content. In this bootloader there is a part implemented in the following way to verify if my application is a valid application: #define CHECK_PATTERN_ADDRESS ((int32)0x00020000) #define VALID_PATTERN ((int16)0xE900) #define VALID_PATTERN_MASK [...] read more
Edit I found that my handle is returning a value of zero. Is it not detecting the process? Edit 2 Shortened the code and found the problem. Answer posted. -------------------------------------------------------------------------------- Okay, so let's jump right in. I am attempting to read the value of an address that I know the [...] read more
EDIT: If I could navigate documents I'd be dangerous. http://www.sqlite.org/sharedcache.html ORIGINAL: The sqlite3_open_v2 function bears the signature: int sqlite3_open_v2( const char *filename, /* Database filename (UTF-8) */ sqlite3 **ppDb, /* OUT: SQLite db handle */ int flags, /* Flags */ const char *zVfs /* Name of VFS module to use [...] read more
First of all, since the writing is long, I say the apology first. I'm studying symbol table in Python and trying to extract the memory address of symbols by directly accessing the symbol table (without id()). So I referenced Eli bendersky's blog. I understand that PySTEntry_Type manages the symbol table(or [...] read more
I tried to execute a shellcode with buffer overflow. Unfortunately I get a segmentation error. In the following the c code asm code and exploit code: C Code: int main(int argc, char **argv) { char buffer[64]; gets(buffer); } ASM Code: 0x000055555555463a <+0>: push rbp 0x000055555555463b <+1>: mov rbp,rsp 0x000055555555463e <+4>: [...] read more
The title says it all. I'm just trying to create a window using CreateWindowEx in assembly and the call is failing with error 1400 (Bad Window Handle). I've verified that no other API calls are failing and DefWindowProc is returning 0 (pass) for WM_CREATE. The parameters going to CreateWindowEx look [...] read more