Skip to content

Commit 9c82c04

Browse files
committed
Update on the usage of sleep()
1 parent ed3c5f0 commit 9c82c04

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

HACKING

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@ need user input, you can either register an option or expose an
3737
interactive session type specific for the type of exploit.
3838

3939
3. Don't use "sleep". It has been known to cause issues with
40-
multi-threaded programs on various platforms. Instead, we use
41-
"select(nil, nil, nil, <time>)" throughout the framework. We have
42-
found this works around the underlying issue.
40+
multi-threaded programs on various platforms running an older version of
41+
Ruby such as 1.8. Instead, we use "select(nil, nil, nil, <time>)" or
42+
Rex::sleep() throughout the framework. We have found this works around
43+
the underlying issue.
4344

4445
4. Always use Rex sockets, not ruby sockets. This includes
4546
third-party libraries such as Net::Http. There are several very good

0 commit comments

Comments
 (0)