kali access host web page solution

1. First install the PHPDVWA test platform, set the level to low, and kali comes with python2.7. In order to no longer modify python3.6 in the host, you need to use kali to access the web pages in the host. Access is not possible without configuration modifications.

  The first step is to check the addresses of the two operating systems

 2. File output input stream

 The File object calls the public Boolean mkdir() method to create a directory,

        If the File object is a directory, call public String[] list() to return the files in the directory as strings.

          public File[] listFile() returns all files in the directory in the form of File objects.

        The method of filtering the file class, public String[] list(FilenamFilter obj) This method returns all files of the specified file type in the directory in the form of a string.

       public File[] listFile(FilenameFilter obj) This method returns the file of the specified type in the directory in the form of a File object.

The above two methods use a common interface, FilenameFilter, which has a method public Boolean accept(File dir, String name)

  When the File object dirFile calls the list method, it needs to pass an object that implements the FilenameFilter interface to the method. When the list method is executed, the parameter objb continuously calls the family's method accept (File dir, String name). The parameter dir in the conceptual method is the current calling list. Directory dirFile The parameter name is instantiated as a file name in the dirFile directory. When the interface method returns true, the list method stores the file named name in the returned array.

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324897796&siteId=291194637