TCP Sequence number in Java domain

Hi,
Trying to get a platform unique number I thought about a combination between IP address and the local machine TCP sequence number.
Is there a way in Java to get the TCP sequence number?
Thanks,
-Michael

I don't think you can get down to that level. Java 1.6 might allow this when it is released.
There have been several posts today about determining "machine uniqueness". Usual solutions rely on platform-specific code to get some low-level network information (e.g. MAC address). The problem with this is
1) It currently relies on native calls (1.6 should have an API for MAC address though).
2) MAC addresses (local IP addresses, machine names, etc) can easily be changed/spoofed.
If you're using 1.5 and your code runs on the client-side, there is a pure-java fix you can do. You can generate a java.util.UUID for each machine when your software first runs, then store this value using the Preferences API. This number will persist until the OS is wiped.

Similar Messages

  • How to remove "TCP Sequence Number Approximation Based Denial of Service" vulnrability ???

    Hi Friends,
    In our weekly security scan , following vulnrability has been detected "TCP Sequence Number Approximation Based Denial of Service" . could you please any one let us know , hot to remove or mitigate this vulnrability ???
    Thanks!

    Hello,
    Please provide more details, specifically the 'port(s)' involved, the target service if known, the scanner in question, the version of ESXi scanned.
    I.e. all ports, general, Nessus, ESXi 5.x
    Best regards,
    Edward L. Haletky
    VMware Communities User Moderator, VMware vExpert 2009, 2010, 2011,2012,2013,2014
    Author of the books 'VMWare ESX and ESXi in the Enterprise: Planning Deployment Virtualization Servers', Copyright 2011 Pearson Education. 'VMware vSphere and Virtual Infrastructure Security: Securing the Virtual Environment', Copyright 2009 Pearson Education.
    Virtualization and Cloud Security Analyst: The Virtualization Practice, LLC -- vSphere Upgrade Saga -- Virtualization Security Round Table Podcast

  • TCP sequence number

    hi!
    I'm using a socket connection in my j2me application and i need to know the sequence number of every tcp packet that i receive, can i do that?
    I was searching and i didn't find anything...
    thanks!

    http://www.ietf.org/rfc/rfc1889.txt and
    http://today.java.net/pub/a/today/2006/08/22/experiments-in-streaming-java-me.html
    infos here

  • Is there a patch for MS05-019 TCP Sequence Number Approximation Vulnerability remediation on Server 2008 R2!!!

    I see the patch for all platforms except Server 2008 R2.  Is there one?
    http://www.microsoft.com/technet/security/bulletin/MS05-019.mspx
    Affected Software:
    Microsoft Windows 2000 Service Pack 3 and Microsoft Windows 2000 Service Pack 4 – Download the update
    Microsoft Windows XP Service Pack 1 and Microsoft Windows XP Service Pack 2 – Download the update
    Microsoft Windows XP 64-Bit Edition Service Pack 1 (Itanium) – Download the update
    Microsoft Windows XP 64-Bit Edition Version 2003 (Itanium) – Download the update
    Microsoft Windows Server 2003 – Download the update
    Microsoft Windows Server 2003 for Itanium-based Systems – Download the update
    Microsoft Windows 98, Microsoft Windows 98 Second Edition (SE), and Microsoft Windows Millennium Edition (ME) – Review the FAQ section of this bulletin for details about these operating systems.
    Non-Affected Software:
    Microsoft Windows Server 2003 Service Pack 1
    Microsoft Windows Server 2003 with SP1 for Itanium-based Systems
    Microsoft Windows Server 2003 x64 Edition
    Microsoft Windows XP Professional x64 Edition

    Hi Rodney,
    Thanks for posting here.
    Hotfix
    893066 is the patch that will fix issues for only Windows server 2003/XP base operation system .
    Are you encountering any issue on windows server 2008 R2? If so,
    could you discuss that in detail ?
     http://blogs.technet.com/b/networking/archive/tags/windows+server+2008+r2/
    Thanks.
    Tiger Li
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Reading or changing sequence number in TCP packets

    I don't know wether this is feasible,But you're my last chance to figure out something else.Can i read the sequence number that comes inside the TCP header in the incomming packets?This sound illogical but since there is a method for getting the IP of the sender(And that IP exits in the IP header Network layer i),then the sequence number (TCP header inside the Transport layer)must exits in the packet.Can i read it?
    -And an even more illogical question? can i change that sequence number or the acknowlege number to form a new packet ? Its like converting a packet to and from a packet object to a string of bits ?
    I know excatly where the sequence and acknowledge numbers are located (after how many bits) inside the TCP header?

    ejp wrote:
    first off I'm wanna appply this to javame application and jpcap have some native code i dunno how to use it on a cell phone.You cant.You can migrate the code to work on a mobile phone, in theory. This is unlikely to be worth it even if you succeed.
    I was thinking if i can change the acknowledge numberYou can't.Like sticking your hand in a blender. Its simpler to say you can't but I say you shouldn't want to.
    i can order the server i'm connected to to send the data from a specific byte no sequentially.Use a protocol that already understands that. HTTP and FTP spring to mind.There are existing protocols for this which work and your phone is likely to support HTTP with XHTML basic already.
    -Drop this packet and then form another packet with the same info as if it were formed automatically except replaciong the acknolwedge number with the size of my buffered data + 1.TCP/IP will never let this work even if you could do it, which you can't. You cannot skip data this way. This is not what acknowledgements and sequence numbers are for.
    I also know that some protocols support requesting files from a specific byte(like HTTP) but i wanna do it inside the network layer not the application layerWhy?You prefer the blender, I see.

  • Sequence number in ADF FORM.

    hi All,
    I have a table with ID as primary key and have a sequence created for this primary key and have a trigger for generating sequence number while inserting the record in table.
    How can i map this Sequence in ADF so while inserting record from Form i can skip the ID column.
    Regards,
    Suresh kumar

    I am using MySQL and primary key is auto incremented in my table. Therefore I have selected
    SQL Plateform     :     SQL92     
    Data Type Map     :     Java
    When I am trying to create entiry object, I do not get option of selecting DBSequence. I did some documents reading, I found out that DBSequence is part of "*Java Extended for Oracle*" Data type Map.
    While creating the EO , in the Attribute Settings, I click the Browse and search for DBSequence. I found out oracle.jbo.domain.DBSeqence.
    Can someone please let me know that I am going to face any problem in future by using DBSequence in his manner?
    Thanks in Advance.

  • Need to query the database to get the last sequence number

    Hi all
    I am trying to get the last sequence number of the last row inserted into my Oracle database. Please could someone give me the SQL which would allow me to do this - using Oracle SQL Explorer I have confirmed that there is a sequence on the table which is called: XYZ_SEQ and the code for this is:
    CREATE SEQUENCE "MY_USER_NAME"."XYZ_SEQ" MINVALUE 1 MAXVALUE 999999999999999999999999999 INCREMENT BY 1 START WITH 21 CACHE 20 NOORDER NOCYCLE ;
    My Java application is inserting a row into my table and to insert a new row I need to have the last sequence inserted +1 so the new row can be added.
    Any help would be much appreciated.

    Hi,
    Welcome to the forum!
    If you are using a sequence just do (example):
    INSERT INTO TABLE_NAME
       (COL1,
        COL2)
    VALUES
       (SEQUENCE_NAME.NEXTVAL,
        OTHER_VALUE);to obtain (and use) the next number in the sequence when you are inserting.
    If you have a sequence to use for a specific table, you should use it when your insert new data (no matter your are doing that: java application, procedure, etc). Doing this you avoid some problems when you have the sequence 'out of date' about the associated data.
    Regards,
    Edited by: Walter Fernández on Sep 19, 2009 10:08 AM
    Edited by: Walter Fernández on Sep 19, 2009 10:10 AM

  • How to populate sequence number automatically in fusion web application

    Hi all,
    I created simple fusion web application.
    I created a form which has programid and remaining fields are there.
    If i press save button program details will save in database.
    here i am giving programid manually. but i need to generate a sequence number to programid automatically.
    If i give program details and save for this program details one sequence number should be generate and save in databasePlease help me
    Thanks,
    raj

    Here there are two methods given
    1. Generating sequence number from the trigger
    2. another one is from java class.
    I tried two but i am not getting the sequence number.
    In my application under model project i have programview.
    i created CustomEntityEmpl java class.
    I double clicked on programid in attributes window, given some sequence name in name field,given db sequence name as as value.
    i mentioned name of sequence in Java class. but still it is asking a value when submiting the program details with out program id.
    please help ASAP
    Thanks
    Nag

  • Error in mail sender channel : invalid sequence number

    Hello all,
    I'm having the following issue.
    I'm using the mail adapter to get messages from a mail server, which are attached to the mail.
    This interface is already productive, and is working fine most of the time.
    Only frequently I get the following error, which can be found in the java log.
    exception caught during processing mail message[630];
    java.io.IOException: the specified message not found: -ERR invalid sequence
    number
    This error seems only to appear when there are a lot of mails to be fetched.
    All the mail is read into PI and processed succesfully, only I also get a lot these errors.
    Does anyone know what causes this error?
    I also don't know where this sequence number is coming from, and what's the meaning of this.
    Is it possible it's trying to read the same mail more then once?
    The settings in the mail sender channel are:
    - transport protocol : POP3
    - message protocol : XIPAYLOAD
    - Use mail package : enabled
    - content encoding : none
    - Keep attachments : enabled
    - QOS : exactly once
    - Set adapter specific message attibutes : enabled
    The PI version is 7.01
    Thanks a lot in advance for the replies on this question.
    Kind regards,
    Marco van Iersel

    Hi
    Well we have used it with POP3 and it is working in the way as it should be.
    This feature is recommended  by sap when the number of emails to be read is large.
    You can set this additional parameter to restrict the number of mails fetched by sender mail adapter in one polling interval.
    Sometimes the mailbox configured for the sender mail adapter contains large number of unread mails, which exceeds the average expected number of mails in one polling interval. In such a case, processing of all the unread mails in the same polling interval by sender mail adapter degrades the system performance. To avoid this, set value of this parameter to the maximum number of mails to be fetched and processed in one polling interval. The remaining mails exceeding the limit would be processed in the next polling interval.
    That's why I have asked you to give it a try.

  • FILEIO message sequence counter reset after domain restart

    Hi,
    I have configured FileIO to pick message from RIB-RMS topic and create xml message. It is working fine.
    These xml message are pick by external system based on their sequence number in file name itself. like File name 'Items_ItemCre_100069945.775' having message number 775.
    After Domain bounce, counter is reset to 0, causing the duplicate message error as message is identified by its sequence number.
    Please let me know how can we avoid resetting the message counter?
    Thanks & Reagrds,
    Vinay

    Hi,
    Are the results from a same computer? (Run manually and ran that as required)
    Please make sure the instance of 'Win32_EncryptableVolume' exists on that drive. 
    Best Regards,
    Joyce Li
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Sequence Number in XI Mapping

    Hi All,
    I have scenario where a sequence number when mapping is done. Consider the example:
    In the source message I have one header and 10 line items in the message. The line item in the target message has a field called sequence number. When i map the source message to the target message each of the target line items hould have a sequence number in the order 1, 2, 3..10.
    How can this be done? Is there a feature in XI which lets us have a global variable which can be incremented for each line item or a java class which can generate new sequence number for each line item or something.
    I'm using message mapping. Java mapping is not used.
    Could you please help me?
    Thanks,
    Sandeep

    Hi Sandeep,
    u can follow these steps to generate a sequence no using global container.
    -> define a global variable by clicking the JAVA_SECTION_TOOLTIP icon on the design tab of source message type of ur message mapping.
    enter the following in the GlobalVariables Section
    Integer counter =0;
    -> define a user defined function (<b>SeqGen</b> let's say)
    write the following code in it.
    Integer seq = 0;
    GlobalContainer globalContainer = container.getGlobalContainer();
    a = globalContainer.getParameter("counter");
    seq = globalContainer.getParameter("counter");
    seq = seq + 1;
    globalContainer.setParameter("counter",seq);
    return a;
    now use this user defined function (SeqGen)in all ur mappings to the sequence no of ur line items.
    Hope this helps.
    Anil

  • The sequence number of message

    Hello Experts,
    On the target message we have a field where the message sequence number have to be saved.
    So the question is how we can do that?
    Is there is some global storage to save the counter?
    I guess JAVA-sections and GlobalContainer will not work here as I need some storage which we be global to all instances of the mapping.
    Thanks for your responses.
    Best Regards,
    Artsiom Anichenka

    You can follow these steps to generate a sequence no using global container.
    1) Define a global variable by clicking the JAVA_SECTION_TOOLTIP icon on the design tab of source message type of ur message mapping.
    2) Enter the following in the GlobalVariables Section
    Integer counter =0;
    3) Define a user defined function
    function myudf(Container container)
    Integer seq = 0;
    GlobalContainer globalContainer = container.getGlobalContainer();
    a = globalContainer.getParameter("counter");
    seq = globalContainer.getParameter("counter");
    seq = seq + 1;
    globalContainer.setParameter("counter",seq);
    return a;
    4) use myudf to your target field
    myudf--->target sequence no field
    XI: New features in SP14

  • Request a sequence number

    Hello!
    I am really new in programming and with jsp...but I wonder if you could help me...
    I am trying to make a web application that should give a sequence number to the user. It is like a document number reservation. I am using the autoincrement to make the format of the number. I mean the number should have 5 digits , so I want to add "0" to the autoincrement......But I do not know how to do it.....
    Here you have my code:
    <html>
    <TITLE> Order Number Request</TITLE>
    <FORM METHOD=POST ACTION="PeticionNumero.jsp">
    Please, fill in your userid <INPUT TYPE=TEXT NAME="userid" SIZE=20>
    <P><INPUT TYPE=SUBMIT VALUE="RequestNumber">
    </FORM>
    </BODY>
    </HTML>
    ==============================
    And the jsp code:
    <%@ page import="java.util.*, java.sql.*, java.io.* ,java.lang.*,java.text.*" %>
    <%
    //Cargamos el driver
    Class.forName("com.mysql.jdbc.Driver");
    Connection con = null;
    Statement stat = null;
    PreparedStatement ps = null;
    <HTML>
    <BODY>
    try {
         //establecemos la conexion con la base de datos
         con = DriverManager.getConnection("jdbc:mysql://localhost/Incidencia?user=nobody&password=nobody");
         stat = con.createStatement();
         ResultSet rs = null;
         String userid = request.getParameter("userid");
         //Comprobamos que el campo no sea nulo
         if (userid==null)
    %>
    <BR> User id is mandatory. Click here Back to repeat the request.
    <%
         else
              //Consultamos la fecha
              java.util.Date dt = new java.util.Date();
              java.sql.Date sqlDate = new java.sql.Date(dt.getTime());
              //Miramos cual ha sido la ultima orden
              String sql1 = "SELECT LAST_INSERT_ID()";
              ResultSet r = stat.executeQuery(sql1);
              r.next();
              int resultado = Integer.parseInt(r.getString(1));
              int longitud = sql1.length();
              For ( int i=0, longitud<i<=5)
              int tmp;
              tmp = "tmp" +"0";
              int RequestNumber = "tmp" + "resultado";
              //Creamos el formato de nuestra orden
              String sql4= "INSERT RequestNumber SET UserId = '"+userid+"',date = '"+sqlDate+"',RequestId ='"+RequestNumber+"' ";
         catch(Exception excpt)
              out.println(excpt.getMessage());
    %>
    </BODY>
    </HTML>

    public String padOnRight( int number, int length, char withChar )
       String paddedNumber = String.valueOf( number );
       while( paddedNumber.length( ) < length )
          paddedNumber += withChar;
       return( paddedNumber );
    public String padOnLeft( int number, int length, char withChar )
       String paddedNumber = String.valueOf( number );
       while( paddedNumber.length( ) < length )
          paddedNumber = withChar + paddedNumber;
       return( paddedNumber );
    }You probably want to do this:
    // Get int sequenceNumber from database
    String numberToShowUser = padOnLeft( sequenceNumber, 5, '0' );
    // Put it in the request, session, whatever, and show the user- Jesse

  • Help me in sequence number generation

    hi
    i had written a JSP which reads and displays the all the directories in that pertucular folder
    when i click on a perticular folder it should read each and every file in that folder and it should rename it with a sequence number
    i.e file0001,file0002,file0003 etc....
    the sequence should be reset for each folder and if i add some new files in to diretory it should remember last sequence number and it should assign next number onwards to those files.
    at any point of time i may move or deete any file
    but each and every foler i should keep track of last sequence number assigned so that next onwards i can reame new files from that number
    another constraint is i may delete the files in that directory
    i am new to java
    so PLZ help me how effeciantly i can write a program
    if so PLZ provide me an example
    thanks in advance

    when i click on a perticular folder it should read
    each and every file in that folder and it should
    rename it with a sequence numberShould the files in the underlying file system be renamed or is this "renaming" just an abstraction layer you maintain yourself? In that case you can use JTree of Swing to maintain an own file structure on top of the OS. You just map "your" filenames to the real file names underneath.

  • How is the next repository sequence number determined?

    I'm in Fusion Middleware activating an RPD file that is sitting in a directory all by itself. When I click Apply, the name of the RPD file plus a sequence number, such as _BI014, is shown as the new repository name.
    Where does FMC look to determine that the last sequence number used was 13, so this one should be 14? Where is that little tidbit of information stored?

    Hi Mark,
    Refer to this article from Rittman, where he clearly explained what happens in the background upon clicking on Apply button:
    From the Article:
    "Apply button, to save the changes. At this point, the RPD gets a sequence number after it, and it’s displayed as the current default online repository for the Oracle BI Domain.
    So what’s gone on in the background to make this happen? When you press the Apply button, another MBean method gets called; this time, the uploadRepository method from the oracle.biee.admin:type=BIDomain.BIInstance.ServerConfiguration,biInstance=coreapplication, group=Service MBean.
    This MBean takes the two parameters that you entered into Enterprise Manager, or that you can enter directly into the MBean Browser yourself:
    When you call then method, it reads the value of the DataZipFileVersion attribute within the oracle.biee.local:Location=bi_server1,type=DomainConfigProxy,group=Config MBean, and increments it by one, to get the sequence number it appends to the RPD file name.
    Once the uploadRepository method is called, you can see the name of the uploaded repository in the MBean’s Repository Name attribute"
    Reference: http://www.rittmanmead.com/2011/03/so-how-does-enterprise-manager-work-within-obiee-11g/
    Thanks,
    -Amith.

Maybe you are looking for

  • LMS 3.0.1

    Hey clarke, i have running LMS 3.0.1 with Dec 2007 update,it running fine with discovewred devices (6500 series)In discovery summary i see reacheable devices 17 and unreacheable devices XX,The unreacheable devices are not the seperate devices but the

  • Creation of user work flow in oam

    hi This is swathi...a fresher to this technology...can anyone please help me out with the steps needed to create a user work flow

  • How to put 3 column guide for website template?

    How can i put a 3 column guide in PS like I am building a website? This way I can use each section on its own and know where my boundries are. I guess I could just draw a line, but I want something that I can adjust quickly

  • Creating VLANS on the current subnet

    i have recently been tasked to redesign our LAN, its has been one broadcast 192.168.16.0 subnetted 255.255.248.0. may you kindly assist on how to vlan the network that will have about 400 workstations in 8 departments, 105 mitel ip phones, 60 servers

  • TS2972 keep getting an error when i try to use home shared with my apple ty 2nd gen

    home sharing error it wont connect