Sponsored Content
Top Forums Shell Programming and Scripting Traceback spammers using an obfuscation of their URL Post 302979265 by Chubler_XL on Thursday 11th of August 2016 08:54:52 PM
Old 08-11-2016
You could use openssl eg:


Code:
$ PASS=testing

$ export PASS

$ echo "domain.com" |  openssl enc -e -aes-128-cbc -a -salt -pass env:PASS
U2FsdGVkX1+kygeSl5GyH8pIO8PLS8w6BNLHsErJyoE=

$ echo "U2FsdGVkX1+kygeSl5GyH8pIO8PLS8w6BNLHsErJyoE=" | openssl enc -d -aes-128-cbc -a -salt -pass env:PASS
domain.com

Edit: .. Or if you are after something a little shorter, you could drop the random salt and padding:

Code:
$ PASS=testing

$ export PASS

$ echo "domain.com" | openssl enc -a -e -aes-128-ctr -nopad -nosalt -pass env:PASS
Piq5KE6PVJ59PDg=

$ echo "Piq5KE6PVJ59PDg=" | openssl enc -a -d -aes-128-ctr -nosalt -pass env:PASS
domain.com


Last edited by Chubler_XL; 08-11-2016 at 10:13 PM..
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

String hash/obfuscation in ksh

I have a vendor that needs to install a set of scripts (written in korn) that will be run as root through crontab every day. This set of scripts will need to ssh as root to other servers without getting challenged for user name or password. So I have set up ssh key pairing and authorized_keys... (2 Replies)
Discussion started by: StHalcyon
2 Replies

2. UNIX for Advanced & Expert Users

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

3. Shell Programming and Scripting

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

4. UNIX for Dummies Questions & Answers

ReDirecting a URL to another URL - Linux

Hello, I need to redirect an existing URL, how can i do that? There's a current web address to a GUI that I have to redirect to another webaddress. Does anyone know how to do this? This is on Unix boxes Linux. example: https://m45.testing.address.net/host.php make it so the... (3 Replies)
Discussion started by: SkySmart
3 Replies

5. Web Development

Regex to rewrite URL to another URL based on HTTP_HOST?

I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST The call goes out to http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena The ID in the middle is always random due to the cookie. I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies

6. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

Here is what I have so far: find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}' Here is an example content of a PHP or HTM(HTML) file: <iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies

7. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

Hello, Am very new to perl , please help me here !! I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file. below is the script which i have written so far , #!/usr/bin/perl use LWP::UserAgent; use... (2 Replies)
Discussion started by: scott_cog
2 Replies

8. Shell Programming and Scripting

Obfuscation Part II.

Hi guys... This sure is gonna raise a few eyebrows. Further to my shell obfuscation ideas from a previous post this is a derivative with ideas that work. Firstly the file 'obfuscate_master.sh' is created and the access rights changed to the owner only. It is called in ths particular case... (0 Replies)
Discussion started by: wisecracker
0 Replies
AMCRYPTSIMPLE(8)					  System Administration Commands					  AMCRYPTSIMPLE(8)

NAME
amcryptsimple - reference simple crypt program for Amanda symmetric data encryption SYNOPSIS
amcryptsimple to be called by Amanda only DESCRIPTION
amcryptsimple calls gpg to perform symmetric data encryption on Amanda backup. amcryptsimple will search for the gpg program in the following directories: /usr/local/bin:/usr/bin:/usr/sbin:/bin:/sbin amcryptsimple uses one passphrase to encrypt the Amanda data and uses the same passphrase to decrypt the Amanda backup data. amcryptsimple uses AES256 as the symmetric cipher. HOW TO CREATE PASSPHRASE
Store the passphrase inside the home-directory of the Amanda user ($amanda_user) and protect it with proper permissions: echo my_secret_passphrase > ~$amanda_user/.am_passphrase chown $amanda_user:disk ~$amanda_user/.am_passphrase chmod 700 ~$amanda_user/.am_passphrase NOTES
Choose a good passphrase and protect it properly. Backup data can only be restored with the passphrase. There is no backdoor. If storing and securing passphrase in your environment presents challenges, Amanda provide public-key data encryption through amgpgcrypt. Public-key encryption uses the public key to encrypt and uses the private key to decrypt. SEE ALSO
amanda(8), amanda.conf(5), amcrypt(8), amgpgcrypt(8), amrestore(8), gpg(1) The Amanda Wiki: : http://wiki.zmanda.com/ AUTHOR
Kevin Till <kevin.till@zmanda.com> Zmanda, Inc. (http://www.zmanda.com) Amanda 3.3.1 02/21/2012 AMCRYPTSIMPLE(8)
All times are GMT -4. The time now is 08:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy