hacking contest

hacking exploits security forum
hacking
compliance articles
upgrade backup exec
information security consultant

Full Version: File Time Changer
DiabloPatch
thx wink.gif


just as the Topic says.

enjoy wink.gif
daguilar01
looks like a good tool, thx DiabloPatch
Kynroxes
ya very amazing tool, very original !! great man, tks !! wink.gif
morbido
well helo dh its dk here tongue.gif ill check ur tool out, good that u finally finished it
320X
Thanks DiabloPatch for the tool wink.gif
FiNaLBeTa
Well hi dk and dh tongue.gif

nice tool. keep it up, and keep posting the source, that rulles.
zero-maitimax
always handy tool like that biggrin.gif
liquidSilver
Awesome. Added to my collection, this tool could be very usefull! rolleyes.gif
eXist
Nice tool and very nice idea mate.
One problem, I receive problems when running it, when it tries to "read" data from a certain offset it fails and crashes, with a warning box. I tried to compile your souce that was included, but received the same problem when I ran it.
Any ideas on what is happening here and how it can be solved?
jjoao
Nice concept, simple and yet very usefull. No more changing time in the pc to make this change. Nice one. Gonna take it and see if it works.

biggrin.gif biggrin.gif
DiabloPatch
@eXist

it should compile fine but just look through the code beacause I almost never clean the code so that people can see a bit the things I tried maybe I left some things that don't belong or forgot to say you gotta link with things.

I compiled it with lcc-win32 and it works fine.

that offset thingie I don't completly understand plz give a example.

EDIT:::

change:

hFile = CreateFile(argv[1],
GENERIC_READ|GENERIC_WRITE,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
to:::

hFile = CreateFile(argv[1],
GENERIC_READ,
FILE_SHARE_READ,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
vnet576
Nice program..would've been even nicer if you didn't make it so obvious that all you did was copy and paste the actual copy function from MSDN.com! ohmy.gif laugh.gif

Didn't even bother to make you're own comments..sheesh. Not gonna pretend and say that I never use other people's code or msdn code. But I make sure to always put the link for the original code or give credits to the author.

http://msdn.microsoft.com/library/default...._write_time.asp

YOUR FUNCTION:
CODE
BOOL CopyTime(HANDLE hFile, LPSTR lpszString,HANDLE file2change)
{
   FILETIME ftCreate, ftAccess, ftWrite;
   SYSTEMTIME stUTC, stLocal;

   // Retrieve the file times for the file.
   if (!GetFileTime(hFile, &ftCreate, &ftAccess, &ftWrite))
       return FALSE;
//take other files time
SetFileTime(file2change,&ftCreate, &ftAccess, &ftWrite);
   // Convert the last-write time to local time.
   FileTimeToSystemTime(&ftWrite, &stUTC);
   SystemTimeToTzSpecificLocalTime(NULL, &stUTC, &stLocal);

   // Build a string showing the date and time.
   wsprintf(lpszString, "%02d/%02d/%d  %02d:%02d",
       stLocal.wDay, stLocal.wMonth, stLocal.wYear,
       stLocal.wHour, stLocal.wMinute);

   return TRUE;
}


MSDN FUNCTION:
CODE

BOOL GetLastWriteTime(HANDLE hFile, LPSTR lpszString)
{
   FILETIME ftCreate, ftAccess, ftWrite;
   SYSTEMTIME stUTC, stLocal;

   // Retrieve the file times for the file.
   if (!GetFileTime(hFile, &ftCreate, &ftAccess, &ftWrite))
       return FALSE;

   // Convert the last-write time to local time.
   FileTimeToSystemTime(&ftWrite, &stUTC);
   SystemTimeToTzSpecificLocalTime(NULL, &stUTC, &stLocal);

   // Build a string showing the date and time.
   wsprintf(lpszString, "%02d/%02d/%d  %02d:%02d",
       stLocal.wDay, stLocal.wMonth, stLocal.wYear,
       stLocal.wHour, stLocal.wMinute);

   return TRUE;
}
DiabloPatch
Nice noticed tyhat I used MSDN to learn from smile.gif congrats

Also congrats on the useless flame you post.

Even more congrats on the wonderfull way you bring it.

And last super congrats on how you think about peeps that are not very good in programming and use msdn as a source on how to do things. and when finished post the program and the sourcecode even if they didn't make any changes to the sourceode of msdn because that would be like useless work :S what did you want me to change ???? the name of the variables? put my own comment explaining things? that would be lame because I didn't make it smile.gif and as far as for giving credits read the tut's I post imho I ALWAYS give credits to the ones who help me out. the only thing is I never saw some1 using msdn code and giving credits to it.So if you know som1 introduce me smile.gif and btw I also noticed that a lot of peeps make very nice windows program but don't give the code even if it is a simple program. Wonder why that would be....Afraid other peeps notice they used msdn and get flamed?


All I got to say if you want to flame because I spent time searching MSDN and using there code go ahead. I know of mysef then when I need to give credtis I always GIVE FULL credits to the peeps. Only thing you accomplish with this kind of flaming imho is that other peeps don't dare to post the code along with the program. but ohwel seems like nowaday opensource is less and less important and even having peeps that to there own programs and make some effort in learning something are also less and less important.

this are just my 2 cents.
vnet576
Well, for one thing you obviously don't know what a flame post is. If you look back I didnt' insult you in any way, I just pointed out that you used a function word for word, without even really understanding what it does. And yeh, whenever I post code where I use msdn functions, I always post a link to that function in the comments. So now you know someone who does that. wink.gif
DiabloPatch
QUOTE (vnet576 @ Mar 19 2004, 04:49 PM)
Well, for one thing you obviously don't know what a flame post is. If you look back I didnt' insult you in any way, I just pointed out that you used a function word for word, without even really understanding what it does. And yeh, whenever I post code where I use msdn functions, I always post a link to that function in the comments. So now you know someone who does that.  wink.gif

You are talking about me not knowing what a flame post is... well actually I do.... but my question for you would be what do you know about me? You pretend to know me so well saying I don't post credits under my code, saying I wouldn't know what a flame post when I see one and saying that I wouldn't understand the code I am using.. I mean how would you know?. I never said anything about you insulting me in anyway so I don't why you bothered putting that in your reply...

Uhm, tbh I am not going to spend anymore time on this, because when the code doesn't get released everyone bitches and when it get's released it still get's bitched. So no good way to avoid some critism, which doesn't always have to be a bad thing. But thanks for pointing it out anyway.

I move on with coding and understanding things if someone doesn't like my time and effot just don't download it... NUFF SAID.

This was not ment as a insult or flame just my opinion and how I think about this matter. Hope we can all move peacefully on:)

Cheers,
DiabloHorn
vnet576
QUOTE (DiabloPatch @ Mar 19 2004, 04:37 PM)
You are talking about me not knowing what a flame post is... well actually I do.... but my question for you would be what do you know about me? You pretend to know me so well saying I don't post credits under my code, saying I wouldn't know what a flame post when I see one and saying that I wouldn't understand the code I am using.. I mean how would you know?. I never said anything about you insulting me in anyway so I don't why you bothered putting that in your reply...

Uhm, tbh I am not going to spend anymore time on this, because when the code doesn't get released everyone bitches and when it get's released it still get's bitched. So no good way to avoid some critism, which doesn't always have to be a bad thing. But thanks for pointing it out anyway.

I move on with coding and understanding things if someone doesn't like my time and effot just don't download it... NUFF SAID.

This was not ment as a insult or flame just my opinion and how I think about this matter. Hope we can all move peacefully on:)

Cheers,
DiabloHorn

Nah, I base my opinion of you off your posts. Thats true I dont' know you but I judge you based on what I see. I'll keep in mind how much time and effort is required in copying and pasting code.

Guess your just a higher level of script kiddy, they use other people's compiled programs without knowing what they're doing. And you..well..you just use other people's code without knowing what you're doing...

Far as I'm concerned you're both the same thing...anyway gonna set you to ignore..honestly don't have time to read and reply to crap like this. mad.gif
DiabloPatch
well great smile.gif

now even get insulted for scriptkiddie and all the bad things he can even come up with :S great. I just admire your way of motivating people to find out things and share them just great.

Well seems like that everyone who wants to learn things and starts to code things for other is a high level scriptkiddie according to what he says.

thx smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.

 
Invision Power Board © 2001-2005 Invision Power Services, Inc.