Archive for the ‘GNU/Linux’ Category

Send a message using netbios :-P

Download #!/bin/bash # Sends a message to a user using NETBIOS (& smbclient) # Usage # sendmessage if [ $# -ne 3 ] then echo -e “\n\t[Usage]” echo -e “\tsendmessage \”\” \”\”\n” exit fi USER_IP=$1 MESSAGE=$2 PROXY_USER=$3 NETBIOS_NAME=”” MSG_LEN=$(echo $MESSAGE | wc -c) # Try to find the netbios name NETBIOS_NAME=$(nmblookup -A $1 | grep [...]

Coding standards for Sticker

Come coding standards i wish to follow for

Sticker SRS

Sticker SRS is now available at Docs@Sticker Now the Sticker team has a direction

Getting dirty with CVS ;-)

Some routine commands for everyone’s reference… 1) Checking out a module cvs -z3 -d:ext:username@forgecvs1.novell.com:/cvsroot/project co module 2) Commiting a change cvs -z3 -d:ext:username@forgecvs1.novell.com:/cvsroot/project commit 3) Adding a file to the project cvs -z3 -d:ext:username@forgecvs1.novell.com:/cvsroot/project add filename.cpp 4) Deleting (some/all)files from the module // checkout the module cvs -z3 -d:ext:username@forgecvs1.novell.com:/cvsroot/project co module // cd module; rm [...]

Some code… finally!

// Test Sticker stub // Shucks! Indentation is lost…!!! #include “sticker.h” int main() { unsigned long pid; printf(“Enter PID : “); scanf(“%lu”, &pid); try { Sticker *sticker = new Sticker(pid); sticker->attachSticker(); StickerRegisters *regs = sticker->getRegisters(); sticker->detachSticker(); if(regs) printf(“main : regs is at 0x%X\tEIP = 0x%X\n”, regs, regs->getEIP()); else printf(“NULL \n”); } catch(StickerException e) { printf(e.getReason()); [...]

At the end of 5 hours – A cute Segfault!

root@Warrior:~/Projects/Sticker/src# ./sticker Enter PID : 549 Sticker[debug] : Initializing Sticker Sticker[debug] : Sticker initialized Sticker[debug] : Entering doPtrace Sticker[debug] : Attaching to victim Sticker[debug] : Entering ptrace stub Sticker[debug] : Exiting ptrace stub Sticker[debug] : Exiting doPtrace Sticker[debug] : Entering doPtrace Sticker[debug] : Fetching registers from victim Sticker[debug] : Entering ptrace stub Sticker[debug] : Exiting [...]

Sticker @ Novell Forge

I’m feeling very happy to anounce that Sticker is now hosted at Novell Forge Servers I’ll be hosting the homepage (@ makuchaku.in) & will be using Novell Forge’s project management utilities, like cvs, forums, wiki, mailing lists, etc. Sticker project page @ Novell Forge http://forge.novell.com/modules/xfmod/project/?sticker If you would like to see the miniscule codebase sticker [...]

Editing memory locations in GDB

Date: Thu, 8 Dec 2005 09:26:53 +0000 From: “Vishal Soni” To: mayank2cool@yahoo.com Subject: Re: a GDB question… On 12/8/05, Mayank Jain wrote: > Hi Vishal, hello mayank, > I got your ID from ilugd list. It seems as if you have > lotsa experience in gdb/kgdb. > I have a query regarding GDB… > -> [...]

Current state of Sticker

Umm… the code is 5% complete (grin!) The project registration at savannah is still underway, we’ll have to wait for sometime before i can provide anyone with the anonymous CVS access. This time i’m planning to stress more on project management activities, like filing bugs, testing activities, periodically updating the cvs, etc. Here is the [...]

Linux… finally on my office PC

After almost 6 months of nonstop head banging on win32, i finally managed to pursuade my project manager, Mr. tarun to let me install GNU/Linux on my office PC. Though its just Fedora Core 3 & its going to be there for just 1-2 weeks as i’ll be shifting my seat (i’m going to System [...]