Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hacks-hidesh
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
b3
hacks-hidesh
Commits
4a2a72fe
Commit
4a2a72fe
authored
11 years ago
by
Bruno BEAUFILS
Browse files
Options
Downloads
Patches
Plain Diff
Cosmetic changes in README.
parent
aa838300
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+26
-19
26 additions, 19 deletions
README.md
with
26 additions
and
19 deletions
README.md
+
26
−
19
View file @
4a2a72fe
...
@@ -2,23 +2,30 @@
...
@@ -2,23 +2,30 @@
Goals
Goals
=====
=====
I give lectures and practical works on Unix and shell scripting to students as
I give lectures and practical works on Unix and shell scripting to
part of my jobs. The way I do these practical works is that I give them some
students as part of my jobs. The way I do these practical works is
kind of specifications and uses examples. Then I hope they will understand
that I give them some kind of specifications and uses examples. Then I
what I want them to do and wait. They often do not get exactly what the script
hope they will understand what I want them to do and wait. They often
have to do.
do not get exactly what the script have to do.
What could be helpful is to enable them to have access to a working version of
What could be helpful is to enable them to have access to a working
the script but without them to be able to have access to the source of it. It
version of the script but without them to be able to have access to
is not possible to do that through simple Unix rights managements : in order
the source of it. It is not possible to do that through simple Unix
to execute a shell script one has to be able to read it.
rights managements: in order to execute a shell script one has to be
able to read it.
Having a binary version of a shell script is why I wrote hidesh. This program
takes a shell script and write a simple C file which once compiled runs the
Having an
*obfuscated*
(e.g. a binary) version of a shell script is
script. I can then distribute the produced binary to my students who can then
why I wrote hidesh.
test the script without knowing how it is written. With a little work they
could be able to find the source code in memory. If they are able to do that
This program takes a shell script and will write an obfuscated version
it's fine for me because they do not need my lessons anyway :-)
of the script (e.g. a simple C file which once compiled runs the
script). I can then distribute the produced obfuscated script (or
binary) to my students who can then test the script without knowing
how it is written.
With a little work they could be able to de-obfuscate it (e.g. find
the source code in memory). If they are able to do that it's fine for
me because they do not need my lessons anyway :-)
How it works
How it works
============
============
...
@@ -27,8 +34,8 @@ How it works
...
@@ -27,8 +34,8 @@ How it works
2- Obfuscate it a little bit (base64 for instance)
2- Obfuscate it a little bit (base64 for instance)
3- Write a C file which embed that obfuscated version in a constant
string and
3- Write a C file which embed that obfuscated version in a constant
which :
string and
which :
1- deobfuscate the string
1- deobfuscate the string
2- create a named pipe
2- create a named pipe
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment