After converting the hexstr to Hex and storing the Hex in a char*
Hi All,
My main intension of is to convert the Hexstring stored in a char* into hex and then prefixing it with "0x" and suffix it with ','
This has to be done for all the hexstring char* is NULL.
Store the result prefixed with "0x" and suffixed with ',' in another char* and pass it to another module.
I just want to print and see the values in the result char* to see if it is stored as 0x30, (say when the input char* a = "30" )
How can I verify the values stored in the char*...?
I cannot print it neither as %s nor %x both gives junk values.. %s gives junk because it is hex and %x gives junk because i have formatted with "0x30," i think.. But am not clear and don't know how to check if the values got stored in this format. 0x30,
Hi everyone!
I was wondering if anyone knows how to change hex code back into ascii.
when i process a form:
" / " turn to " %2F "
" @ " turns to " %40 "
" ' " turns to " %27 "
" ( " turns to " %28 "
" ) " turns to " %29 "
this is my code so far: order.txt
thanks,
primal
p.s.... (1 Reply)
Hi Experts,
I have a file called "hex" which contains info like below
How do i convert everything in this file to decimal value? Please advice. Thanks (4 Replies)
Hi,
I have a char buf,ch; and the buf is filled with the result from MySQL server which I get like this numbytes = recv(sock, buf, 1024, 0));I have the followingcode to display the results
printf("received %ld bytes:\n",numbytes);
for(c=0;c<numbytes;c++){
ch = (char)buf;
... (2 Replies)
Hello. I'm working on a project that involves creating public/private keys server-side using openssl and using the public key in a Javascript application to encrypt sensitive data in form fields before transmission to the server. Using an SSL https server connection was not an option in this... (1 Reply)
I am trying to convert a txt file that includes one long string of data. The lines are separated with hex value 7C (for pipe).
I am trying to process this file using SQR (Peoplesoft) so I thought the easiest thing to do would be to replace the eol char with a CRLF in unix so I can just... (4 Replies)
I want it to ouput "abcd", but it dosen't.
1 #include<stdio.h>
2 int main()
3 {
4 printf("a\x62cd");
5 }
6
gcc alarm.c -o alarm
alarm.c: In function 'main':
alarm.c:4:9: warning: hex escape sequence out of range
It seems that the complier joint "cd" as part of... (8 Replies)
Hi,
Is there really a difference between these two, std::hex and ios::hex??
I stumbled upon reading a line, "std::ios::hex is a bitmask (8 on gcc) and works with setf(). std::hex is the operator". Is this true?
Thanks (0 Replies)
I am writing a bash script to do some parsing on a log and I am running into a problem when it comes to converting only certain sections of the file from hex to ascii or hex to decimal.
Data Example:
The hex values after Hardware and SW Version I need to convert from Hex to ASCII and the... (16 Replies)
Hi Guys,
writing a small shell script, i need to convert parts of a string to "Hex". The problem is that it is not the full string that needs to be converted.
I think it's best to show an example:
$astring = "xxxxxx ABC+10+##########+DEF xxxx"
This is only an example to show how the... (9 Replies)
How to convert decimal value to hex and than take 1st digits as variable
sample data
84844294,5,6
51291736,2,3
84844294,5,6
51291736,2,3
i can use {printf "%x,%d\n",$1,$2} but than i want to filter base on 1st hex digit 1st recrd (1 Reply)
Discussion started by: before4
1 Replies
LEARN ABOUT DEBIAN
pnscan
PNSCAN(1)PNSCAN(1)NAME
pnscan - multi threaded port scanning tool
SYNOPSIS
pnscan [ options] [ <CIDR | host-range> <port-range>]
pnscan [ options] [ <port>]
DESCRIPTION
This manual page documents briefly the pnscan command.
pnscan is a tool that can be used to survey TCP network services.
When used with two command line arguments it will scan the indicated network/hosts and ports. When used without arguments or just one then
it will read hostname/IP addresses from stdin and probe those. The single port/service argument is used as a default if no port is indi-
cated on stdin
For example, it can be used to survey the installed versions of SSH, FTP, SMTP, Web, IDENT and possibly other services.
This program implements a multithreaded TCP port scanner. More information and new relaseses may be found at:
http://www.lysator.liu.se/~pen/pnscan
OPTIONS -h Show summary of options.
-v Be verbose.
-V Print version.
-d Print debugginf info.
-s Lookup and print hostnames.
-S Enable shutdown mode.
-l Line oriented output.
-w<string>
Request string to send.
-r<string>
Response string to look for.
-W<hex list>
Hex coded request string to send.
-R<hex list>
Hex coded response string to look for.
-L<length>
Max bytes of response to print.
-t<msecs>
Connect/Write/Read timeout.
-n<workers>
Concurrent worker threads.
SEE ALSO
nmap (1) and ipsort (1).
AUTHOR
pnscan was written by Peter Eriksson <pen@lysator.liu.se>.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or
any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts and no Back-Cover Texts.
25 March 2002 PNSCAN(1)