Using java to retrieve windows password

Is there any way to get Java to retrieve the windows password?

Diablo_Chiru wrote:
how can i capture this into a string variable? can u explain it in briefLet me make a drawing for you:
+--------------------------------------------------+
| If it were possible to just get the password of  |
| a Windows user account through a couple of lines |
| of Java code, would Windows be used nowadays?    |
+---------+-------------------------------+--------+
          |                               |
          |                               |
        +-+--+                         +--+--+
        | NO |                         | YES |
        +-+--+                         +--+--+
          |                               |
          |                               |
+---------+--------------+          +-----+------+
| Is Windows used at the |          | Try again! |
| time of this writing?  |          +------------+
+---+-------------+------+
    |             |
    |             |
  +-+--+       +--+--+
  | NO |       | YES |
  +-+--+       +--+--+
    |             |
    |             |
    |     +-------+----------------------+
    |     | Then it is safe to conclude  |
    |     | that there is no easy way to |
    |     | get the password(s)          |
    |     +------------------------------+
    |
    |
+---+-----------------------+
| Then why do you need this |
| functionality if Windows  |
| is not being used?        |
+---------------------------+

Similar Messages

  • How to read system eventlog using java program in windows?

    How to read system eventlog using java program in windows?
    is there any java class available to do this ? or any one having sample code for this?
    Your friend Zoe

    Hi,
    There is no java class for reading event log in windows, so we can do one thing we can use windows system 32 VBS script to read the system log .
    The output of this command can be read using java program....
    we can use java exec for executing this system32 vbs script.
    use the below program and pass the command "eventquery"
    plz refer cscript,wscript
    import java.io.*;
    public class CmdExec {
    public static void main(String argv[]) {
    try {
    String line;
    Process p = Runtime.getRuntime().exec("Command");
    BufferedReader input =
    new BufferedReader
    (new InputStreamReader(p.getInputStream()));
    while ((line = input.readLine()) != null) {
    System.out.println(line);
    input.close();
    catch (Exception err) {
    err.printStackTrace();
    This sample program will list all the system log information....
    Zoe

  • How to read system evenlog using java program in windows

    How to read system evenlog using java program in windows???
    is there any java class available to do this ? or any one having sample code for this?
    Your friend Zoe

    Welcome to the Sun forums.
    >
    How to read system evenlog using java program in windows???>
    JNI. (No.)
    >
    is there any java class available to do this ? or any one having sample code for this?>You will generally get better help around here if you read the documentation, try some sample code and come back with a specific question (hopefully with an SSCCE included).
    >
    Your friend Zoe>(raised eyebrow) Thank you for sharing that with us.
    Note also that one '?' denotes a question, while 2 or more generally denotes a dweeb.

  • ***How to use Java to change user password in *mdw file?

    Hi,
    Is it possible to use java to change user's password in the MS Access workgroup file(*mdw)? I have been searching for this topic for a long time, but no discoveries yet. Anyone has any idea?
    Sincerely,
    nonameisname

    There is probably a windows API call that does it.
    Once you find it, you wrap it in C code and then use JNI to call it from Java.

  • Can I use Java JMF on Windows XP Professional

    I wanted to know if I can use/install Java JMF on Windows XP and how hard/easy is to use Java JMF to stream live video with a webcam and using applet on a web page; As I hoping to embark on a project.
    Any suggestions will be gratefull.
    Kind Regards,
    DM

    You can install the JMF on windows xp since i am doing so. Also you can use web cam to capture and stream out as usual.

  • Help using Java to retrieve XMLType returned from PL/SQL stored object

    Hi,
    Please bear with me if this is a trivial question. I'm brand new to Java, JDBC, and XML DB. I've been spinning my wheels on this for a few hours now.
    I have a table:
    XMLDB_USER@xmldb64> desc my_test_table
    Name                                      Null?    Type
    ID                                                 NUMBER(9)
    DOC                                                SYS.XMLTYPE(XMLSchema "http:
                                                        //www.myproquest.com/Global_
                                                        Schema_v3.0.xsd" Element "RE
                                                        CORD") STORAGE BINARYI've written a trivially simple PL/SQL function to retrieve the DOC column, based on the ID passed to it.
    create or replace function get_doc(goid in number) return xmltype is
      doc_content xmltype;
    begin
      select doc into doc_content from my_test_table where id = goid;
      return doc_content;
    end;
    /Up to here, everything works fine. I wrote a small anonymous PL/SQL block, and proved that I can call the PL/SQL function successfully.
    Now, I want to implement in Java. This is where I get confused.
    Currently my code looks like this:
    import java.sql.*;
    import oracle.jdbc.*;
    import oracle.jdbc.OracleTypes;
    import oracle.jdbc.pool.OracleDataSource;
    import oracle.xdb.*;
    import java.io.*;
    import java.lang.StringBuilder;
    import java.sql.Clob;
    class MyJava
      public static void main(String args[]) throws SQLException, IOException
        Clob xml = null;
        System.out.print("Connecting to the database...");
        System.out.flush();
        OracleDataSource ods = new OracleDataSource();
        String URL = "jdbc:oracle:thin:@//pqhdb201.aa1.pqe:1522/xmldb64";
        ods.setURL(URL);
        ods.setUser("xmldb_user");
        ods.setPassword("xmldb_user");
        Connection conn = ods.getConnection();
        System.out.println("connected.");
        System.out.println("GOID to be retrieved is " + args[0]);
        CallableStatement cs1 = null;
    try {
        cs1 = conn.prepareCall( "{? = call get_doc (?)}" );
        cs1.registerOutParameter(1,OracleTypes.OPAQUE,"XMLType");
        cs1.setString(2,args[0]);
        cs1.execute();
    //    xml = XMLType.createXML(cs1.getOPAQUE(1));
        xml = (Clob) cs1.getObject(1);
    //    System.out.println(((XMLType)xml).getStringVal());
    //    System.out.println(xml.getClobVal());
        System.out.println(xml.getCharacterStream());
      finally {
         if(cs1!=null) cs1.close();
         if(conn!=null) conn.close();
    }This compiles, but when I run, I get:
    pqhdb201:[xmldb64]:(/home/oracle/xmldb_scripts):$java MyJava 91455713
    Connecting to the database...connected.
    GOID to be retrieved is 91455713
    Exception in thread "main" java.sql.SQLException: invalid name pattern: XMLDB_USER.XMLType
            at oracle.jdbc.oracore.OracleTypeADT.initMetadata(OracleTypeADT.java:553)
            at oracle.jdbc.oracore.OracleTypeADT.init(OracleTypeADT.java:469)
            at oracle.sql.OpaqueDescriptor.initPickler(OpaqueDescriptor.java:237)
            at oracle.sql.OpaqueDescriptor.<init>(OpaqueDescriptor.java:104)
            at oracle.sql.OpaqueDescriptor.createDescriptor(OpaqueDescriptor.java:220)
            at oracle.sql.OpaqueDescriptor.createDescriptor(OpaqueDescriptor.java:181)
            at oracle.jdbc.driver.NamedTypeAccessor.otypeFromName(NamedTypeAccessor.java:83)
            at oracle.jdbc.driver.TypeAccessor.initMetadata(TypeAccessor.java:89)
            at oracle.jdbc.driver.T4CCallableStatement.allocateAccessor(T4CCallableStatement.java:689)
            at oracle.jdbc.driver.OracleCallableStatement.registerOutParameterInternal(OracleCallableStatement.java:157)
            at oracle.jdbc.driver.OracleCallableStatement.registerOutParameter(OracleCallableStatement.java:202)
            at oracle.jdbc.driver.OracleCallableStatementWrapper.registerOutParameter(OracleCallableStatementWrapper.java:1356)
            at MyJava.main(MyJava.java:29)As you can see from the commented lines, I've tried several different approaches, based on various examples from Oracle documentation and various samples found on the net. My problem, I think, is that I have a fundamental disconnect somewhere. Objects? Types? Different methods? getClobVal? getStringVal? getCharacterStream? I'm still trying to get up to speed on all the lingo and terminology, and, as a result, I suspect I'm asking the wrong questions, and getting wrong results.
    Based on the simple example above, my table and PL/SQL function definitions, can someone help me fill in the gaps of what I'm missing in terms of the Java code?
    Thanks!
    -Mark

    Hi, I´ve been working on an application that return an XMLTYPE from an schema package, the XML is generated in a query, not read it in a table, and use that variable in a JSP.
    The DDL of the package function is this:
    CREATE OR REPLACE
    PACKAGE BODY pkg_modulos
    IS
        FUNCTION obtenerModulos (pAnio IN NUMBER DEFAULT 2011)
            RETURN XMLTYPE
        IS
            x    XMLTYPE;
        BEGIN
            SELECT  XMLELEMENT ("tree", XMLAttributes (0 AS "id"),
                        (SELECT  DBMS_XMLGEN.getxmltype(DBMS_XMLGEN.newcontextfromhierarchy('SELECT level,
                                              XMLElement("item",
                                                                          XMLAttributes(
                                                                    m.idmodulo as "id",
                                                                    m.nombre AS "text"))
                                FROM            modulos m
                 WHERE m.anio = 2011
    CONNECT BY   PRIOR m.idmodulo = m.padre
    START WITH   m.padre IS NULL'))
                            FROM     DUAL))
                            arbolXML
              INTO  x
              FROM  DUAL;
            RETURN x;
        END;                                                                         
    END;   as far as I see there shouldn´t be any problems with this code
    The problem is on the JSP code
    this is my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <%@ page contentType="text/xml; charset=UTF-8" import="java.io.*,java.lang.*,java.sql.*,java.util.*,oracle.jdbc.*,oracle.xdb.*, oracle.jdbc.OracleTypes,oracle.jdbc.pool.OracleDataSource"%>
    <%
      Connection dbconn;
      OracleDataSource ods = new OracleDataSource();
      OracleCallableStatement stmt;
        try
             String hostname="localhost";
             String dbname="xe";
             String usr="seguridad";
             String pass="seguridad";
             String URL = "jdbc:oracle:thin:@"+hostname+":1521:"+dbname;
             ods.setURL(URL);
            ods.setUser(usr);
            ods.setPassword(pass);
             dbconn = ods.getConnection();
              String st=request.getParameter("st").toString();
              int np=Integer.parseInt(request.getParameter("np").toString());     
              stmt = (OracleCallableStatement)dbconn.prepareCall( "begin ? := "+st+"; end;" );
              stmt.registerOutParameter(1,OracleTypes.OPAQUE,"SYS.XMLTYPE");          
              stmt.execute();
              XMLType xml = null;
              xml = (XMLType) stmt.getObject(1);
              System.out.println(xml.getStringVal());
              stmt.close();
              dbconn.close();
        catch (SQLException s)
          out.println("SQL Error: " + s.toString());
           System.out.println("SQL Error: " + s.toString());
    %>I´m getting te error:
    SQL Error: java.sql.SQLException: inconsistent java and sql object types: SYS.XMLTYPE
    Making a debbuging I identified that the exception is been raised in this line:
    xml = (XMLType) stmt.getObject(1);I´ve been checking a lot of online documentation but I´ve not been able to make it work
    If anyone could help me please, I don´t know what else to do
    Thanks... sorry for the english

  • Using Java to Retrieve Images from Oracle

    OracleResultSet.getCustomDatum method is deprecated. I was using this method to retrieve an ORDImage from an Oracle 9i database. What are developers using instead of getCustomDatum to retrieve images from the database. Thanks for all help in this matter.

    Hi use getBinaryStream(java.lang.String) or getBinaryStream(int) of java.sql.ResultSet for retrieving images from database
    Hope it will be useful
    regards
    chandru

  • Application started using Java Web Start doesn't launch the first time

    I have a Facebook photo uploader application that I plan to distribute using Java Web Start. I'm using Java 6u4 on Windows XP SP2 with 2GB of RAM. I have Java 6u3, Java 6u4 and Java 5 u14 installed and I'm sure the one used is Java 6u4.
    I signed my application and make use of all security settings.
    Here is my JNLP file:
    <?xml version="1.0" encoding="utf-8"?>
    <jnlp spec="1.0+"
         codebase="http://www.antaki.ca/bloom/jars"
         href="http://www.antaki.ca/bloom/Bloom.jnlp">
    <information>
        <title>Bloom</title>
        <vendor>Carl Antaki</vendor>
        <icon kind="splash" href="http://www.antaki.ca/bloom/Bloom.jpg"/>
        <icon href="http://www.antaki.ca/bloom/bloom32.jpg"/>
      <shortcut online="false">
      <desktop/>
      <menu submenu="Bloom"/>
      </shortcut>
    </information>
        <resources>
            <j2se version="1.5+" initial-heap-size="32m" max-heap-size="128m" href="http://java.sun.com/products/autodl/j2se" />
            <property name="sun.java2d.d3d" value="false"/>
            <jar href="http://www.antaki.ca/bloom/jars/Bloom.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/BrowserLauncher2-1_3.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/SmartProgressMonitor.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/facebook.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/forms-1.1.0.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/json_simple.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swing-worker-1.1.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/glazedlists_java15.jar"/>
            <jar href="http://www.antaki.ca/bloom/jars/swingx-0.9.1.jar"/>   
            <jar href="http://www.antaki.ca/bloom/jars/jhbasic.jar"/>
       </resources>
    <security>
         <all-permissions/>
      </security>
    <application-desc main-class="ca.antaki.www.bloom.gui.Bloom" />
    </jnlp>Here is the link for my application http://antaki.ca/bloom/Bloom.jnlp
    The first time the application is installed using a link on the browser it's downloaded then the certificate dialog is shown, after that I check the checkbox to accept the certificate permanently. The application doesn't load, it only loads the second time although I see it in the task manager. If I don't accept the certificate permanently it does load. This happens on both Firefox 2 and IE 7. I enabled the console and logging but nothing shows up there.That's really a weird problem, I wonder if Java Web Start is a viable deployment option, it does have great capabilities such as autoupdate but still seems to have important bugs.
    Does anyone have any clue about what is going on.
    The problem doesn't occur on Ubuntu 7.10.
    Thanks,
    Carl Antaki

    >
    You were right my XML file was not correct. I still couldn't find a valid JNLP validator. Sun has to provide that.>No they don't (have to supply a validator for their own document type, though it makes sense to do so), but yes they do (provide a tool that validates XML against schemas). Java can validate XML against a DTD or XSD.
    Check these two threads (and chase the links) for more details.
    JNLP xsd schema
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/c6f65bf1df5f105d/30c6b7e2dc342dc4>
    Validate XML against DTD? XSD OK. SSCCE.
    <http://groups.google.com.au/group/comp.lang.java.programmer/browse_thread/thread/5b997a1edb765b11/e831f3066eb4aa38>
    Look especially for the posts by Piotr Kobzda.
    I had a tool on my site based largely on Piotr's codes, that linked to a valid JNLP DTD and XSD, but unfortunately my site is offline at the moment. Andy assures me that the JNLP 6.0 DTD has been corrected for the developer ..download tutorials of web start, though the online (web site) version may still be invalid.

  • Creating Web Services using Java Implementation

    Hi,
    This is quite a general question on how to create a Web Service using Java Implementation that needs to conform to a client XML schema.
    Here are my Version specs,
    I am using Jdeveloper 10.1.3.4.0 and deploying onto OAS 10.1.3.
    I will be creating a J2ee 1.4 (JAX-RPC) Web Service using Document/Wrapped style.
    I have been provided an XML schema from the client which is quite complex.
    Using a top-down approach, I can create my WSDL file and import the XML Schema for my type definitions.
    The Web service aim is to accept some parameters and return some data from the Oracle Database. The
    XML response from the web service must conform to the element, attribute definitions in the provided XML schema.
    From a Java implementation approach, what is the best (simplest or quickest) way to retrieve data from the Oracle
    tables and map each fields/column to the required XML output (defined in the XML schema).
    I'm not too concerned with using Java to retrieve data from the Database, more with how I can map the data returned
    to the required output. Can this mapping task be controlled within the Java program?
    Thanks in advance.

    Hi,
    This is quite a general question on how to create a Web Service using Java Implementation that needs to conform to a client XML schema.
    Here are my Version specs,
    I am using Jdeveloper 10.1.3.4.0 and deploying onto OAS 10.1.3.
    I will be creating a J2ee 1.4 (JAX-RPC) Web Service using Document/Wrapped style.
    I have been provided an XML schema from the client which is quite complex.
    Using a top-down approach, I can create my WSDL file and import the XML Schema for my type definitions.
    The Web service aim is to accept some parameters and return some data from the Oracle Database. The
    XML response from the web service must conform to the element, attribute definitions in the provided XML schema.
    From a Java implementation approach, what is the best (simplest or quickest) way to retrieve data from the Oracle
    tables and map each fields/column to the required XML output (defined in the XML schema).
    I'm not too concerned with using Java to retrieve data from the Database, more with how I can map the data returned
    to the required output. Can this mapping task be controlled within the Java program?
    Thanks in advance.

  • How can I retrieve my password when the retrials email was not recoverable? I also can't use or pass the othere menace of recovery? Not being able to pass or answer the security questions?

    How can I retrieve my password when the retrials email was not recoverable either? I also can't use or pass the othere means of recovery? Not being able to pass or answer the security questions?
    I created a new ID but never being able to update the iTunes that were purchased/saved using the old id?
    I can't also delete.

    Hi Kazmania89,
    Welcome to the Support Communities!
    If you require additional assistance with this, click on the link below for guidance:
    Apple ID: Contacting Apple for help with Apple ID account security
    http://support.apple.com/kb/HT5699
    Once you are able to gain access to the old Apple ID, this article may be helpful:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/HT4895
    I have purchased music, apps, or books with multiple Apple IDs. How can I get all of this content onto my iOS device?

    First, you need to copy all of your purchased content so it is on the same Mac or PC with iTunes. This computer should be the one you sync your device with. For more information on how to move your content, see these articles:
    Mac:  iTunes for Mac: How to copy purchases between computers
    PC:  iTunes for Windows: How to copy purchases between computers
    Next, authorize your computer to play content with each Apple ID in iTunes. Once your computer is authorized for all your content, it can be synced to your iPhone, iPad, or iPod touch. 
    Cheers,
    - Judy

  • How to trace changes in directories and files in windows using java.

    Hi,
    Want to know how to trace changes in directories and files in windows using java.
    I need to create a java procedure that keeps track of any changes done in any directory and its files on a windows System and save this data.
    Edited by: shruti.ggn on Mar 20, 2009 1:56 AM

    chk out the bellow list,get the xml and make the procedure.....     
         Notes          
    1     Some of the similar software’s include HoneyBow, honeytrap, honeyC, captureHPC, honeymole, captureBAT, nepenthes.     
    2     Some of the other hacking software’s include keyloggers. Keyloggers are used for monitoring the keystrokes typed by the user so that we can get the info or passwords one is typing. Some of the keyloggers include remote monitoring capability, it means that we can send the remote file across the network to someone else and then we can monitor the key strokes of that remote pc. Some of the famous keyloggers include win-spy, real-spy, family keylogger and stealth spy.          
    3     Apart from theses tools mentioned above there are some more tools to include that are deepfreeze, Elcomsoft password cracking tools, Online DFS, StegAlyzer, Log analysis tools such as sawmill, etc.

  • Windows Ad Authentication using java

    Hi,
    My Requirement: We are using Java, JSP, Struts in our application.
    We have a user login jsp page. Whenever user try signing by using the logiin page we have to use Ad(Active Directory) userid and Ad password available from operating system.
    Can any one please suggest me how I can achieve this?
    Thanks in advance
    Best Regards,
    Satish

    1. Given a user name password and perhaps other information find out via the windows API how to 'log in'. This has nothing to do with java.
    2. Write some C/C++ code that uses 1 to wrap that functionality in such a way that it describes what you want to do in your application. This has nothing to do with java.
    3. Write a jni java class and C JNI code to wrap 2. This has something to do with java.

  • Authenticate against windows 2000 server securtiy using Java.JNI

    How could you use Java or JNI to read the password and group membeship from the operating system for a given windows 2000 user, from a servlet/class?

    Are you looking to build some sort of single sign-on module? You wouldn't be able to get the password, but you might be able to pass a token indicating the users credentials. You'd have to delve into the MSDN resources to get that.
    Once you figure out how to what you want using COM, you can more easily integrate it into Java using the sourceforge projects Jacob or JAWIN.

  • Can I use my existing E-mail address to retrieve my password reset through security questions

    Can I use my existing E-mail address to retrieve my password reset through security questions instead of through E-mail. When I try retrieving my new Apple password through reset through security questions?  On the Apple id, it will not allow me to do so becasue I forgot my security answers to the question. I'm naming one or two of the wrong vechiles which is what the questions ask me for for security questions.
    For icloud do you reccommend that I keep that same E-mail address or create a new one for my iCloud mail aside from my G-mail address name?
    I asked support community for the very first time to reset my security questions and it wanted me to create a new user name for iCloud when I already have *****l for my original Apple id.
    <Email Edited By Host>

    TheresaEW,
    I’d recommend contacting Apple directly to resolve your security question issue.

  • Saving the password of a user in active directory using java

    Hello, i am trying to use java to build a class that creates a user in Active directory 2012.But the problem is that when the user is created the password is not being saved.
    Can anybody help on this knowing that i tried to save in the fields userPassword and unicodePwd.
    Thanks.

    DirContext ctx = new InitialDirContext(pr);
              BasicAttributes entry = new BasicAttributes(true);
              String entryDN = "cn=CharbelHad,ou=test users,dc=test,dc=dev";
              Attribute cn = new BasicAttribute("cn", "ChHad");
              Attribute street = (new BasicAttribute("streetAddress", "Ach"));
              Attribute loginPreW2k = (new BasicAttribute("sAMAccountName", "[email protected]"));
              Attribute login = (new BasicAttribute("userPrincipalName", "[email protected]"));
              Attribute sn = (new BasicAttribute("sn", "Chl"));
              Attribute pwd = new BasicAttribute("unicodePwd", "\"Ch@341\"".getBytes("UTF-8"));
    Attribute userAccountControl = new BasicAttribute("userAccountControl", "512");
              Attribute oc = new BasicAttribute("objectClass");
              oc.add("top");
              oc.add("person");
              oc.add("organizationalPerson");
              oc.add("user");
              // build the entry
              entry.put(cn);
              entry.put(street);
              entry.put(sn);
              entry.put(userAccountControl);
              entry.put(pwd);
              entry.put(login);
              entry.put(loginPreW2k);
              entry.put(oc);
              ctx.createSubcontext(entryDN, entry);

Maybe you are looking for

  • Problem with variable inside split-join

    Hello, I'm using Oracle BOM Suite 10.3.0.0 and i want to use the split gateway. In general the split activity ends with a join. the problem is when i affect a value to a variable between the split and join, it could not get this value after the join,

  • File adaptor Debugging?

    HI @, I am using a file adaptor which is reading the file and then archiving it after successfull reading .Now what happened that In my scenarion the file got picked up by adaptor and archived also but there is no trace available in the SXMB_MONI I n

  • User can't login in EBS 12.0.6.

    Hi, When user gives user name and pass the following error received. this is only with specific user(only one user). we are using 12.0.6 EBS with database 10.2.0.3, OS linux AS 4. Exception Details. oracle.apps.fnd.framework.OAException: java.lang.Nu

  • Simulating SAP's report Send functionality to send report from a job

    Hi,   When we run a report in the foreground we are able send the report output as an attachment link by mail (NOT internet mail). I want to do the same thing where I can send the spool output (or link) as attachement to a SAP user, which he can open

  • Can I download explorer for my iMac?

    Can I download Microsoft Explorer for my iMac?