Tuesday, October 10, 2006

creating my own "desktop.scf"

Today I was trying to restore my old desktop shortcut on taskbar,which I mistakingly removed ,I tried to get it back but all in vaine(I didnt use google till now) I was actually using [start key]+D to get desktop as a short cut,but I wanted that shortcut link back,I saw my other computer to see what was that link cos it is not a usual short cut created by simple right click--->create shortcut thing [as I know till the moment] ,I found that it is not as usual a .lnk file as in every shortcut ,hmm,so it was not a normal shortcut file as I thought so what revealed is that it is a .scf file type and doesnt contain a complicated file contents,so I just created that file followed by dragging it and dropping it into taskbar .The data inside that file was as simple as that :

------------------------------desktop.scf-----------------------
[SHELL]
command=2
iconfile=explorer.exe,3
[Taskbar]
Command=ToggleDesktop
----------------------------------------------------------------

well, after searching windows directory I found that there are other .scf files: explorer.scf and view channels.scf ,and here is the data inside them :
----------------------------explorer.scf------------------------
[Shell]
Command=2
IconFile=explorer.exe,1

[Taskbar]
Command=Explorer
----------------------------------------------------------------


and for view channels.scf
--------------------------view channels.scf--------------------

[Shell]
Command=3
IconFile=shdocvw.dll,-118

[IE]
Command=Channels

---------------------------------------------------------------

I dont know how these things are useful,but it was interesting thing I experienced today...
selam and peace my brother :lol:

Labels:

Smilar pages

Sunday, October 08, 2006

away from data section!

Greetings miserable peopl
*[if you are not miserable you are not welocmed here :) ]

Couple of days ago I figured out a very distinctive way to use stack memory as your own data memory storage ,downsides that it will be a brainfuck to you in building large codes,and another thing each 'push' puts 4 bytes in the stack memory so for large sentences then you need more than one push ! .

;code sample provided by bug-code 2006
;demontrates how you can use stack memory to store some data in

;--------------------------------------------------------------------

.386
.model flat,stdcall
option casemap:none

include \masm32\include\windows.inc
include \masm32\include\user32.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib


.data
db "sample",0

.code

start:
push 0 ;putting zero ended string for MessageBoxA()
push "teel" ;reverse byte oder so it become leet :)
push 0
mov eax,esp
add eax,4
push eax
push eax
push 0
call MessageBox

invoke ExitProcess,0
end start

;---------------------------------------------------------------

the above example to be assembled by using masm32.

---------------------------------------------------------------
Edited -9 Oct.

Labels:

Smilar pages

Thursday, October 05, 2006

hell0 7h3r3!

This is my first post in here (duh!) and this blog will be dedicated to publish my daily experience in computers ,as you will notice most of the things I discover was just a hobby nothing less nothing more ....you can still find my real me on "??XxxX??" .For people who knows me I say this is the new move from me,I am taking this move so as to pass the rawbinsoft project...and make this a real diary of mine,a computer diary...
So get thrilled cos I am planning to post things varies from security news,asm,c,scripts,OS tweaks...and alot other stuff some of them will be crucially lame others will be 1337 :lol: .

so bye for now ,I am going to do some work for this blog :)

Labels:

Smilar pages