08-02-2008
You want to use raw sockets.
Search google for "raw sockets" or "SOCK_RAW" or "PF_PACKET"
If you're programming C in Linux, there are structs that easily let you alter the whole tcp/udp/icmp/igmp/whatever header and inject packets at will. This can also be used for communication over closed ports and other obscure stuff (if you create a listening raw socket, you'll have yourself a "sniffer", and with that you can analyze data packets that arrive even on closed tcp ports)
Last edited by Neo; 08-02-2008 at 07:10 PM..
Reason: Deleted unnecessary editorial comment
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Can we modify the GDB source code so as to analyze core dumps from different targets? From my analysis, I think we need to build our section table statically for each target. i.e., including the various address boundaries in build_section_table() function. If this is the case, then the GDB... (2 Replies)
Discussion started by: nsdeeps
2 Replies
2. Solaris
Hi,
Recently I faced with need of analyze root disk. I figured out two possible ways to do it:
1. Practical. Boot from CD and run format
2. Theoretical. Create live upgrade boot environment on another disk, activate it, reboot, unmont all root disk partitions and run format.
I've already... (3 Replies)
Discussion started by: Sapfeer
3 Replies
3. Shell Programming and Scripting
Hello there,
i am trying to write a shell script to analyse some of my log files.
I want the script to check if there is a logfile from yesterday or today (some times the script that creates the logfile takes a bit longer and its after 00:00) and search the logfile itself if the script was... (0 Replies)
Discussion started by: Linien
0 Replies
4. UNIX for Advanced & Expert Users
Dear All,
I am new to this forum. This is my first.
I am facing customer issue. Customer has got core file while running the server.
He had sent core file and details from pstack, pmap and pldd commands.
I have to debug this application, please help me to fix this issue.
I am using sparc... (1 Reply)
Discussion started by: KiranBangalore
1 Replies
5. Solaris
Dear All,
I am new to this forum. This is my first.
I am facing customer issue. Customer has got core file while running the server.
He had sent core file and details from pstack, pmap and pldd commands.
I have to debug this application, please help me to fix this issue.
I am using sparc 10... (4 Replies)
Discussion started by: KiranBangalore
4 Replies
6. Solaris
I need to analyse some vmcore files, do you guys know how can i get a free version of the "Solaris Crash Analysis Tool " (2 Replies)
Discussion started by: feg
2 Replies
7. Shell Programming and Scripting
Hi all,
I'm working with a peice of software that runs on Linux that allows planning trips in cars through maps. This software has different variations depending on the type of car, e.g. BMW, Audi, Hyundai, etc... Each variation has a dependency on common external components that are not... (1 Reply)
Discussion started by: emoshaya
1 Replies
8. UNIX for Dummies Questions & Answers
Hi,
Someone please analyse the following o/p of fdisk -l and tell me what it means for /dev/sda, /dev/sdb, /dev/sdc ....
Disk /dev/sda: 53.6 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start ... (5 Replies)
Discussion started by: stunn3r
5 Replies
9. HP-UX
Hi All,
When can we see these messages in the syslog.
We have service guard cluster software installed on hpux 11iv3 servers.
We were able to see the below error so many times in our syslog messages
cmdisklockd: Unable to convert device to I/O tree node: I/O tree node does not exist.
... (2 Replies)
Discussion started by: Sachin1987
2 Replies
10. AIX
(5 Replies)
Discussion started by: Vishal_dba
5 Replies
LEARN ABOUT OSF1
shutdown
shutdown(2) System Calls Manual shutdown(2)
NAME
shutdown - Shuts down socket send and receive operations
SYNOPSIS
#include <sys/socket.h>
int shutdown ( int socket, int how );
STANDARDS
Interfaces documented on this reference page conform to industry standards as follows:
shutdown(): XNS5.0
Refer to the standards(5) reference page for more information about industry standards and associated tags.
PARAMETERS
Specifies the file descriptor of the socket. Specifies the type of shutdown. Values are: To disable further receive operations To disable
further send operations To disable further send operations and receive operations
DESCRIPTION
The shutdown() function disables receive and/or send operations on the specified socket.
RETURN VALUES
Upon successful completion, a value of 0 (zero) is returned. Otherwise, a value of -1 is returned and errno is set to indicate the error.
ERRORS
If the shutdown() function fails, errno may be set to one of the following values: The socket parameter is not valid. The how argument is
invalid. Insufficient resources are available in the system to complete the call. The available STREAMS resources were insufficient for
the operation to complete. The socket is not connected. The socket parameter refers to a file, not a socket.
RELATED INFORMATION
Functions: getsockopt(2), read(2), recv(2), recvfrom(2), recvmsg(2), select(2), send(2), sendto(2), setsockopt(2), socket(2), write(2)
Standards: standards(5) delim off
shutdown(2)