Confirming validity of programming language tools


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Confirming validity of programming language tools
# 1  
Old 06-06-2016
Confirming validity of programming language tools

so i have scripts that get run in ways similar to this:

Code:
cat script.pl | perl - $1 $2 $3

cat script.rb | ruby - $1 $ 2 $3

my question is, how can i verify that that the "perl" or "ruby" or "python" tool being run on the box is actually a legit tool? meaning, someone may move the tool from where it is originally supposed to be i.e. /usr/bin and may move it somewhere else. and then put a counterfeit version back in its place in /usr/bin.

is there any testing i can do on the tools themselves that will confirm yes, this tool is valid and is not something unusual?

my first thought was to use the file command...like this:

Code:
fie /usr/bin/python
file /usr/bin/perl

but im afraid there may be ways to fool this or tinker around with this to give inaccurate information masquerading as true.

any ideas?
# 2  
Old 06-07-2016
Keep a checksum like
Code:
sh256sum /usr/bin/perl

and compare before running.
This User Gave Thanks to RudiC For This Post:
# 3  
Old 06-07-2016
Hi.

Brief explanation and pointers to several specific programs:
File integrity monitoring - Wikipedia, the free encyclopedia

Some search results:

185K hits:
file integrity monitoring linux - Google Search

400+ hits:
file integrity monitoring free download - SourceForge

Best wishes ... cheers, drl
This User Gave Thanks to drl For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

How is a new Web Development language written ?

I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm... (3 Replies)
Discussion started by: Anna Hussie
3 Replies

2. Programming

What Programming language should I start learning first?

I want to create a computer program that will translate from English to Spanish and vice versa. So someone could type in a word, phrase, or paragraph and translate from one language to another. What programming language would I use to write up the code and then implement this program? I want to... (8 Replies)
Discussion started by: Anna Hussie
8 Replies

3. Programming

How is a new Web Development language written ?

I'm wondering how programmers develop new Web Development languages because I want to learn how everything begins from the start. Let's say I'm planning to write a new language for the Web. How do I do this? Is there anyone who knows about the way Web Development languages first appear ? I'm asking... (1 Reply)
Discussion started by: Anna Hussie
1 Replies

4. UNIX for Dummies Questions & Answers

Is PERL a programming language?

I need a small and simple clarification... Can someone tell me whether PERL is a programming language or not. Also, can shell scripts also considered as programming language or not. Also, please tell me the exact difference between programming language and scripting. Please help.... (3 Replies)
Discussion started by: Anjan1
3 Replies

5. Programming

C programming on Linux/BSD : which tools to use?

Hello there, i've lurked this forum for a while (in few month i will have been registered for two years) but this is my firts post. Well, after having looked to C language as a black monster, i finally have decided to learn it, and to learn it very well! So, i'm quite new to C, although i... (1 Reply)
Discussion started by: Freddie
1 Replies

6. UNIX for Dummies Questions & Answers

Carreer:Networking Programming in Unix (C programming Language)

Hello, I am trying to learn Networking Programming in C in unix enviorment. I want to know how good it is to become a network programmer. i am crazy about Network programming but i also want to opt for the best carreer options. Anybody experienced Network Programmer, please tell me is my... (5 Replies)
Discussion started by: vibhory2j
5 Replies

7. Programming

c programming language

Can someone enligten me on what below program does? I understand getchar and putchar.. but what is this program suppose to do? I try to put printf on it, but it shows nothing.. can someone explain to me what this program is suppose to do? It is reading something and assigning to c? so, if... (8 Replies)
Discussion started by: convenientstore
8 Replies

8. AIX

Programming Tools for Aix

I am searching for a good debugger and memory leak detection tools like for AIX. Right now we use Xldb for debugging, which is not bad, but detecting memory leaks is a pain... Unfortunately Purify is not aviable for the AIX plattform. DDD is not bad as an alternative debugger but he is... (0 Replies)
Discussion started by: Lazzar
0 Replies

9. UNIX for Dummies Questions & Answers

Does the programming language matters?

I see you guys encouraged people studied and used C while they were working on UNIX. Does C++ or JAVA matter? And in the past threads, Neo, PxT, and other members recommanded lots good books. I think those people who asked for the references, such as Dominic, had experiences on sys admin or... (8 Replies)
Discussion started by: HOUSCOUS
8 Replies
Login or Register to Ask a Question