-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexecvhack.spec
More file actions
44 lines (30 loc) · 1.03 KB
/
execvhack.spec
File metadata and controls
44 lines (30 loc) · 1.03 KB
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
Name: execvhack
Version: 1.0.0
Release: 2
Summary: Library and example script used to show LD_PRELOAD
License: GPL
URL: http://www.gonoph.net
Source0: execvhack-1.0.0.tgz
BuildRequires: shc
# Requires:
%description
Simple LD_PRELOAD example to show how to hijack execvp() system call to print out
arguments of programs that are being executed, especially when they are trying
to hide them via special ptrace() and /proc/$pid/kmem:EXCLUSIVE tricks to prevent
debugging or tracing.
%prep
%setup -q
%build
make %{?_smp_mflags}
%install
%make_install
gzip %{buildroot}/usr/local/man/man2/execvhack.so.2
%files
%attr(755, root, bin) /usr/local/lib/execvhack.so
%attr(644, root, bin) /usr/local/man/man2/execvhack.so.2.gz
%doc LICENSE Makefile README.md execvhack.c mycode.c mycode.sh sample.c secret secret.sh secret.sh.x.c
%changelog
* Mon Mar 14 2016 Billy Holmes <billy@gonoph.net> - 1.0.0-2
- Changed LICENSE and README.md files due to addition on GitHub
* Sun Mar 13 2016 Billy Holmes <billy@gonoph.net - 1.0.0-1
- initial project creation