Sponsored Content
Top Forums UNIX for Beginners Questions & Answers How to find precise nonce values from a virtualhost directory? Post 303045852 by RudiC on Wednesday 15th of April 2020 01:56:41 PM
Old 04-15-2020
Wouldn't some decent, representative input sample data be wonderful?
Try
Code:
grep -o "nonce=['\"][^'\"]*['\"]" file

This User Gave Thanks to RudiC For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Apache httpd.conf <VirtualHost> issue

I have just configured httpd.conf on a new Redhat 9 install. Below are my additions to httpd.conf. Everything works fine except that when typing http://spetnik.d2g.com into my web browser, I am sent to the "Default catch all" site. Any clues? NameVirtualHost *:80 #Default catch all ... (5 Replies)
Discussion started by: Spetnik
5 Replies

2. Web Development

Apache: Forward Proxy Via Virtualhost

I've set up a forward proxy within a VirtualHost (see below) on Apache 2.2.11. I then browse using mydomain.com:80 as the proxy - I've also tried using the IP address of the VirtualHost xxx.xxx.xxx.xxx:80. It works fine, the only problem is that in both cases the server's main IP address is always... (2 Replies)
Discussion started by: krunksta
2 Replies

3. Web Development

Apache virtualhost dinternal domain

Hello, I have have installed two web applications on one server with one IP address and one domain name (mynet.intra). Is it possible to configure in apache 2.2 that access to one application would be from "app1.mynet.intra" and to another application from address "app2.mynet.intra"? Document... (1 Reply)
Discussion started by: kreno
1 Replies

4. Shell Programming and Scripting

find values between values in two different fields

Hi, I need help to find values between two different fields based on $6 (NUM) AND $1 (CD), within the same ID. The result should show the values between the NUMs which will be extracted from within $3 and $2 in data.txt file below. data.txt ex 139 142 Sc_1000004 ID 4 CD ... (2 Replies)
Discussion started by: redse171
2 Replies

5. Shell Programming and Scripting

virtualhost script

can anyone help me to write a script to delete the virtualhost entry in apache vhosts.conf file: hint: when i enter ./deletedomain test.com it should delete the test.com virtualhost entry from vhosts.conf file (2 Replies)
Discussion started by: pssooraj72
2 Replies

6. Shell Programming and Scripting

Solaris, Perl, and precise system uptime??

OK folks, my first post here.. hope the community can come up with a clever solution. Cross posting this in the Solaris and Shell scripting forums, as problem is scripting problem specifically on Solaris platform. I am trying to detect a host's uptime with greater precision than is offered up... (1 Reply)
Discussion started by: Yeaboem
1 Replies

7. Solaris

Precise system uptime??

OK folks, my first post here.. hope the community can come up with a clever solution. Cross posting this in the Solaris and Shell scripting forums, as problem is scripting problem specifically on Solaris platform. I am trying to detect a host's uptime with greater precision than is offered up... (1 Reply)
Discussion started by: Yeaboem
1 Replies

8. Linux

Apache/2.2.25 VirtualHost not working

I am having problems in implementing the virtual hosts here in my server. I have this one cloud dev server: Amazon Linux AMI release 2013.03 (based on RHEL like CentOS) with Apache 2.2.25 installed and I'm trying to create 2 virtual hosts: test-kalc.tk and test2-kalc.tk. If I go to... (2 Replies)
Discussion started by: jpdoria
2 Replies

9. Shell Programming and Scripting

SVN for actual VirtualHost

hi, Earlier I had this thread posted on "UNIX for Experts" Group here in unix.com, but somehow no one bothered to respond, so I thought someone might be able to help me here. In short, I have to make accessible a directory via SVN to all 5 developers, call it /var/www/html/beta3 ... (0 Replies)
Discussion started by: busyboy
0 Replies

10. Shell Programming and Scripting

[zenity] precise progress bar

Hello everyone, Is it possible to have a precise progress bar in zenity during the execution of the following: find -type f \( -not -name "$file_name".md5 \) -exec md5sum '{}' \; > "$file_name".md5Currently I am using zenity --title="Running..." --progress --pulsate --auto-close... (1 Reply)
Discussion started by: soichiro
1 Replies
Auth::Yubikey_WebClient(3pm)				User Contributed Perl Documentation			      Auth::Yubikey_WebClient(3pm)

NAME
Auth::Yubikey_WebClient - Authenticating the Yubikey against the Yubico Web API VERSION
Version 3.00 SYNOPSIS
Authenticate against the Yubico server via the Web API in Perl Sample CGI script :- #!/usr/bin/perl use CGI; $cgi = new CGI; $otp = $cgi->param("otp"); print "Content-type: text/html "; print "<html> "; print "<form method=get>Yubikey : <input type=text name=otp size=40 type=password></form> "; use Auth::Yubikey_WebClient; $id = "<enter your id here>"; $api = "<enter your API key here>"; $nonce = "<enter your nonce here>"; if($otp) { $result = Auth::Yubikey_WebClient::yubikey_webclient($otp,$id,$api,$nonce); # result can be either ERR or OK print "Authentication result : <b>$result</b><br>"; } print "</html> "; FUNCTIONS
new Creates a new Yubikey Webclient connection use Auth::Yubikey_WebClient; my $yubi = Auth::Yubikey_WebClient->new({ id => <enter your id here> , api => '<enter your API key here>' , nonce => '<enter your nonce if you have one>' }); You can overwrite the URL called if you want to call an alternate authentication server as well :- use Auth::Yubikey_WebClient; my $yubi = Auth::Yubikey_WebClient->new({ id => <enter your id here> , api => '<enter your API key here>' , nonce => '<enter your nonce if you have one>', url => 'http://www.otherserver.com/webapi.php' }); debug Displays the debug info $yubi->debug(); Prints out some debug information. Useful to be called after authentication to see what Yubico sent back. You can also call the variables yourself, for example if you'd like to see what the token ID is, call $yubi->{publicid}. The same goes for all the other variables printed in debug. yubikey_webclient otp Check a OTP for validity $result = $yubi->otp($otp); Call the otp procedure with the input from the yubikey. It will return the result. This function will also setup a few internal variables that was returned from Yubico. USAGE
Before you can use this module, you need to register for an API key at Yubico. This is as simple as logging onto <https://upgrade.yubico.com/getapikey/> and entering your Yubikey's OTP and your email address. Once you have the API and ID, you need to provide those details to the module to work. AUTHOR
Phil Massyn, "<phil at massyn.net>" BUGS
Please report any bugs or feature requests to "bug-auth-yubikey_webclient at rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Auth-Yubikey_WebClient <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Auth- Yubikey_WebClient>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. SUPPORT
You can find documentation for this module with the perldoc command. perldoc Auth::Yubikey_WebClient You can also look for information at: o RT: CPAN's request tracker http://rt.cpan.org/NoAuth/Bugs.html?Dist=Auth-Yubikey_WebClient <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Auth-Yubikey_WebClient> o AnnoCPAN: Annotated CPAN documentation http://annocpan.org/dist/Auth-Yubikey_WebClient <http://annocpan.org/dist/Auth-Yubikey_WebClient> o CPAN Ratings http://cpanratings.perl.org/d/Auth-Yubikey_WebClient <http://cpanratings.perl.org/d/Auth-Yubikey_WebClient> o Search CPAN http://search.cpan.org/dist/Auth-Yubikey_WebClient <http://search.cpan.org/dist/Auth-Yubikey_WebClient> Version history 0.04 - Fixed bug <http://rt.cpan.org/Public/Bug/Display.html?id=51121> 1.00 - Added validation of the request to Yubico (Thanks to Kirill Miazine) 2.00 - Added nounce coding (Thanks to Ludvig af Klinteberg) 2.01 - Response turning into an array due to bug (Thanks to Peter Norin) ACKNOWLEDGEMENTS
COPYRIGHT &; LICENSE Copyright 2010 Phil Massyn, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2012-01-14 Auth::Yubikey_WebClient(3pm)
All times are GMT -4. The time now is 01:01 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy