Skip to content

Commit 5a5f102

Browse files
author
subhra74
committed
rename
1 parent f5345e1 commit 5a5f102

32 files changed

+2537
-2540
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Easy Web Shell
1+
# Easy Cloud Shell
22

33
Easy to use web based file manager with built in text editor, terminal, image viewer and video player
44

@@ -17,12 +17,12 @@ run commands using built in terminal, and view images and videos, all from your
1717

1818
Installation
1919
- Install java
20-
- Download the binary archive from https://github.com/subhra74/easy-web-shell/releases
20+
- Download the binary archive from https://github.com/subhra74/easy-cloud-shell/releases
2121
- Extract the archive to a suitable location
2222
- Make file executable with chmod
2323
- Run ./start-ews.sh (For security reasons do not use root user)
2424
- Open recent version on Chrome or Firefox and visit https://[your ip address]:8055/ or, on local machine use https://localhost:8055/
25-
- Ignore any certificate error, appeared due to newly created self signed certificate by easy web shell.
25+
- Ignore any certificate error, appeared due to newly created self signed certificate by easy cloud shell.
2626
- Initial credential:
2727
Username: admin
2828
Password: admin
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
/**
2-
*
3-
*/
4-
package webshell.app;
5-
6-
import java.util.Map;
7-
import java.util.concurrent.ConcurrentHashMap;
8-
9-
import webshell.app.terminal.PtySession;
10-
11-
/**
12-
* @author subhro
13-
*
14-
*/
15-
16-
public class AppContext {
17-
public static final Map<String, PtySession> INSTANCES = new ConcurrentHashMap<>();
18-
public static final Map<String, PtySession> SESSION_MAP = new ConcurrentHashMap<>();
19-
}
1+
/**
2+
*
3+
*/
4+
package cloudshell.app;
5+
6+
import java.util.Map;
7+
import java.util.concurrent.ConcurrentHashMap;
8+
9+
import cloudshell.app.terminal.PtySession;
10+
11+
/**
12+
* @author subhro
13+
*
14+
*/
15+
16+
public class AppContext {
17+
public static final Map<String, PtySession> INSTANCES = new ConcurrentHashMap<>();
18+
public static final Map<String, PtySession> SESSION_MAP = new ConcurrentHashMap<>();
19+
}

app/src/main/java/webshell/app/AppController.java renamed to app/src/main/java/cloudshell/app/AppController.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
*
33
*/
4-
package webshell.app;
4+
package cloudshell.app;
55

66
import java.io.File;
77
import java.io.IOException;
@@ -28,15 +28,15 @@
2828
import org.springframework.web.bind.annotation.RequestParam;
2929
import org.springframework.web.bind.annotation.RestController;
3030

31-
import webshell.app.config.ConfigManager;
32-
import webshell.app.files.FileOperations;
33-
import webshell.app.files.FileService;
34-
import webshell.app.files.FileTransfer;
35-
import webshell.app.files.PosixPermission;
36-
import webshell.app.files.copy.FileCopyProgressResponse;
37-
import webshell.app.files.copy.FileCopyRequest;
38-
import webshell.app.files.search.SearchResult;
39-
import webshell.app.terminal.PtySession;
31+
import cloudshell.app.config.ConfigManager;
32+
import cloudshell.app.files.FileOperations;
33+
import cloudshell.app.files.FileService;
34+
import cloudshell.app.files.FileTransfer;
35+
import cloudshell.app.files.PosixPermission;
36+
import cloudshell.app.files.copy.FileCopyProgressResponse;
37+
import cloudshell.app.files.copy.FileCopyRequest;
38+
import cloudshell.app.files.search.SearchResult;
39+
import cloudshell.app.terminal.PtySession;
4040

4141
/**
4242
* @author subhro

app/src/main/java/webshell/app/Application.java renamed to app/src/main/java/cloudshell/app/Application.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package webshell.app;
1+
package cloudshell.app;
22

33
import java.security.Security;
44
import java.util.Collections;
@@ -29,12 +29,12 @@
2929
import org.springframework.web.socket.config.annotation.WebSocketConfigurer;
3030
import org.springframework.web.socket.config.annotation.WebSocketHandlerRegistry;
3131

32+
import cloudshell.app.config.ConfigManager;
33+
import cloudshell.app.security.CustomAuthEntryPoint;
34+
import cloudshell.app.security.JwtAuthorizationFilter;
35+
import cloudshell.app.terminal.TerminalWebsocketHandler;
3236
import io.jsonwebtoken.SignatureAlgorithm;
3337
import io.jsonwebtoken.security.Keys;
34-
import webshell.app.config.ConfigManager;
35-
import webshell.app.security.CustomAuthEntryPoint;
36-
import webshell.app.security.JwtAuthorizationFilter;
37-
import webshell.app.terminal.TerminalWebsocketHandler;
3838

3939
@EnableWebSecurity
4040
@EnableWebSocket
@@ -63,7 +63,6 @@ public static void main(String[] args) throws Exception {
6363

6464
@Override
6565
public void registerWebSocketHandlers(WebSocketHandlerRegistry registry) {
66-
System.out.println("Encoded: " + passwordEncoder().encode("admin"));
6766
System.out.println("Registered ws");
6867
registry.addHandler(new TerminalWebsocketHandler(), "/term*")
6968
.setAllowedOrigins("*");// .withSockJS();
@@ -105,11 +104,9 @@ public boolean supports(Class<?> authentication) {
105104
@Override
106105
public Authentication authenticate(Authentication authentication)
107106
throws AuthenticationException {
108-
System.out.println("Authenticating...");
109107
String user = authentication.getName();
110108
String pass = authentication.getCredentials().toString();
111-
System.out.println(
112-
user + "--" + System.getProperty("app.default-user"));
109+
113110
if (user.equals(System.getProperty("app.default-user"))
114111
&& passwordEncoder().matches(pass,
115112
System.getProperty("app.default-pass"))) {
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package webshell.app;
2-
3-
import org.springframework.stereotype.Controller;
4-
import org.springframework.web.bind.annotation.RequestMapping;
5-
6-
@Controller
7-
public class SinglePageAppController {
8-
@RequestMapping(value = { "/", "/app/**", "/login" })
9-
public String index() {
10-
return "/index.html";
11-
}
12-
}
1+
package cloudshell.app;
2+
3+
import org.springframework.stereotype.Controller;
4+
import org.springframework.web.bind.annotation.RequestMapping;
5+
6+
@Controller
7+
public class SinglePageAppController {
8+
@RequestMapping(value = { "/", "/app/**", "/login" })
9+
public String index() {
10+
return "/index.html";
11+
}
12+
}

0 commit comments

Comments
 (0)