Compare commits

..

No commits in common. "66a2d4c2f1463d682467242a709872b9d3dcd46d" and "485ab1519f9f4e2a319afb1860cf7047a48254ea" have entirely different histories.

3 changed files with 5 additions and 24 deletions

View File

@ -2,7 +2,6 @@ plugins {
id 'java'
id 'application'
id "com.github.johnrengelman.shadow" version "7.1.2"
id 'maven-publish'
}
group 'dev.ubujira.ps3d'
@ -29,15 +28,3 @@ dependencies {
implementation 'org.pcap4j:pcap4j-core:2.0.0-alpha.6'
implementation 'org.pcap4j:pcap4j-packetfactory-static:2.0.0-alpha.6'
}
publishing {
publications {
maven(MavenPublication) {
groupId = 'dev.ubujira.ps3d'
artifactId = 'AuthObtainer'
version = '1.1'
from components.java
}
}
}

View File

@ -1,2 +0,0 @@
rootProject.name = 'AuthObtainer'

View File

@ -10,10 +10,10 @@ import java.util.List;
public class AuthObtainer {
public String sessionTicket = "";
public String playFabId = "";
static String sessionTicket = "";
static String playFabId = "";
public AuthObtainer() {
public static void main(String[] args) {
//First find Wi-Fi / Ethernet Interface
List<PcapNetworkInterface> allDevices = null;
@ -30,8 +30,8 @@ public class AuthObtainer {
try {
InetAddress address = InetAddress.getLocalHost();
for (PcapAddress pcapAddress : d.getAddresses()) {
if (pcapAddress.getAddress().getHostAddress().equals(address.getHostAddress())) {
for(PcapAddress pcapAddress : d.getAddresses()) {
if(pcapAddress.getAddress().getHostAddress().equals(address.getHostAddress())) {
device = d;
break;
}
@ -88,8 +88,4 @@ public class AuthObtainer {
}
}
public static void main(String[] args) {
new AuthObtainer();
}
}