hacking contest

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

Full Version: Moreseconds.exe
sPiKie
There was a dude that asked for this tool on this: URL So why not post it here biggrin.gif And for you C procedural programmers out there, Dont even try to get out of this C language.. Its so phucking amazing biggrin.gif..
This code isnt "the best" since I made it on 5minutes, but here it is:
CODE

/* This program is just made for a little cool community called GovernmentSecurity.ORG
Author: sPiKie
Coder: sPiKie
Lamer: sPiKie
*/
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>

#define joinme "icenix"

int main(int argc, char *argv[]) {
 char temp[1000];
 if (argc<=2) {                                       //check for wrong syntax
    printf("Usage: %s <program> <seconds>", argv[0]); //wrong usage
    return -1;   //return with error :D jezus spikie is leet :P
 }
 sprintf(temp, "start %s", argv[1]); //hihi
 while (1) { //do to the end of the world ! :D
       system(temp);             //start he program :D
       Sleep(atoi(argv[2])*1000); //using atoi() to convert to integer :)  
 }                                            //and then convert seconds to milliseconds  
}                                               //so it can work in Sleep() :)
/* All this is just sooooo phucking free! Shouts to Icenix; wanna join me to make a
group ? :D */


I also attached the compiled file smile.gif
BTW, this source code is not a linux C code.. Because it is using the system(); command in Windows.. But if you want a linux C code, you can make it simple smile.gif Or I post it this evening..

For the retards out there, try whatever you want with my code.. This is free, and every thing should be free.. Then maybe we would have like 100% more electrical/computer things this days.. smile.gif

Regards,
sPiKie (remember the shouts)
sPiKie
Here is the non-tested and non-compiled *nix C code i made:
CODE

/* This *nix program is just made for a little cool community called GovernmentSecurity.ORG
Author: sPiKie
Coder: sPiKie
Lamer: sPiKie
*/
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int main(int argc, char *argv[]) {
 char temp[1000];
 if (argc<=2) {                                       //check for wrong usage
    printf("Usage: %s <program> <seconds>", argv[0]); //wrong usage
    return -1;   //ohh my god we have to return with error... like saddam :P
 }
 sprintf(temp, "start %s", argv[1]); //hihi
 while (1) { //do to the end of the world ! :D
       system(temp);             //execute the program
       sleep(atoi(argv[2])); //sleep in your seconds
 }
}
/* All this is just sooooo phucking free! Shouts to Icenix; wanna join me to make a
group ? :D */


I think in *nix if that the app will delay your app until the other program has ended, though.. Nice to now wink.gif
clip
sprintf(temp, "%s", argv[1]);
tss... might cause a buffer overflow!
better:
_snprintf(temp,"%s",argv[1],sizeof(temp)); rolleyes.gif
sPiKie
clib, thanks.. But It may crash a bufferoverflow... wow, dont think people use it to bufferoverflow tongue.gif tongue.gif
sPiKie
clip, I could also use, strncpy();
Thanks any way smile.gif
-=*fireball*=-
thx for the nice and usefull app
Alexander01
Yes i got his one already and it's a nice tool.. but only one suggestion


if i wanna execute a dos program like clearlogs.exe -sys the CMD.exe stays open after it executes the program... can you fix this please... would be nice bcuz after an hour there are running more then 100 cmds tongue.gif
sPiKie
QUOTE (Alexander01 @ Feb 7 2004, 04:05 PM)
Yes i got his one already and it's a nice tool.. but only one suggestion


if i wanna execute a dos program like clearlogs.exe -sys the CMD.exe stays open after it executes the program... can you fix this please... would be nice bcuz after an hour there are running more then 100 cmds tongue.gif

I got no time now, I post it in this night....
sPiKie
If anyone thinks it is interesting, here is a newer version I made.. Now it handle arguments biggrin.gif
CODE

/* This program is just made for a little cool community called GovernmentSecurity.ORG
Author: sPiKie v2
Coder: sPiKie v2
Lamer: sPiKie v2
*/
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>

#define joinme "icenix"

int main(int argc, char *argv[]) {
char temp[1000];
char temp2[1000];
if (argc<=3) {                                       //check for wrong syntax
   printf("Usage: %s <program> <seconds> <arguments>", argv[0]); //wrong usage
   return -1;   //return with error :D jezus spikie is leet :P
}
for (int i = 3; i<argc; i++) { //loops true every cmd argument from 3
    sprintf(temp2,"%s %s", temp2, argv[i]); //copies it :D
}
sprintf(temp, "start %s %s", argv[1], temp2); //hihi
while (1) { //do to the end of the world ! :D
      system(temp);             //start he program :D
      Sleep(atoi(argv[2])*1000); //using atoi() to convert to integer :)  
}                                            //and then convert seconds to milliseconds  
}                                               //so it can work in Sleep() :)
/* All this is just sooooo phucking free! Shouts to Icenix; wanna join me to make a
group ? :D */
Alexander01
it already did here, just use the " " biggrin.gif
Paul
Nice work spikie blink.gif
hope to learn c[++] at my next school ph34r.gif
boshcash
nice work skippie , real useful tool
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.