0

I have installed telnet server in my centos 7.

I need to make some modifications to the telnet connection to the server. I have a library to check telnet login. It is encrypted. I need a decoding method. file path is /bin/login

this is file

I tried to decrypt the file by mcrypt tool but it asked me for a password and I don't know it

How can I encrypt and decrypt such files?

2
  • How can I encrypt and decrypt such files? @jsotola Commented Aug 22, 2021 at 4:14
  • 3
    it is unclear what you are trying to decrypt ... how does it relate to telnet? Commented Aug 22, 2021 at 4:55

1 Answer 1

1

The file you point (/bin/login) is executable file, not encrypted. To make changes you need to install util-linux....srpm package, make changes, recompile and install it.

Check here how to install source package for particular package

yum install yum-utils rpm-build
yumdownloader --source <package>
rpm -ivh <package>
yum-builddep redis
rpmbuild -bp <package spec>
6
  • can u help plz how i can install it No package srpm available. Commented Aug 22, 2021 at 5:03
  • i use centos 7 system Commented Aug 22, 2021 at 5:09
  • It turns out that the /bin/login . file Not among the files telnet-server lib . It's from linux centos 7 system files Commented Aug 22, 2021 at 7:05
  • @mohammedmoha, the login utility is part of util-linux package Commented Aug 22, 2021 at 10:04
  • i extract the file util-linux-2.23.2-65.el7_9.1.src.rpm using command rpm2cpio ./util-linux-2.23.2-65.el7_9.1.src.rpm | cpio -idmv . now how i can compress all files extracted to src.rpm file or rpm file Commented Aug 22, 2021 at 20:17

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.